diff options
author | Michael Hunteman <michael@huntm.net> | 2024-09-28 10:55:35 -0700 |
---|---|---|
committer | Michael Hunteman <michael@huntm.net> | 2024-09-28 11:25:16 -0700 |
commit | 0154a152dd6d3606c9131f3186a9175ee5853185 (patch) | |
tree | a166f0cf3819607592fb5ee03255108563f4ba68 /server/cmd | |
parent | 99b5a49b5fcccb7c6523a95c67e39830bc2a2a45 (diff) |
Use api endpoint for backend
Diffstat (limited to 'server/cmd')
-rw-r--r-- | server/cmd/main.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/cmd/main.go b/server/cmd/main.go index 21cdccc..a180cc4 100644 --- a/server/cmd/main.go +++ b/server/cmd/main.go @@ -36,8 +36,8 @@ func main() { adminHandler := admin.NewAdminHandler(adminStore, guestStore) mux := http.NewServeMux() - mux.Handle("/guests/", guestHandler) - mux.Handle("/admin/", adminHandler) + mux.Handle("/api/guests/", guestHandler) + mux.Handle("/api/admin/", adminHandler) log.Fatal(http.ListenAndServe(":8080", serveHTTP(mux))) } |