diff --git a/server/controller.go b/controller.go similarity index 90% rename from server/controller.go rename to controller.go index bb80e69..eb6efac 100644 --- a/server/controller.go +++ b/controller.go @@ -78,22 +78,22 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { switch true { case r.Method == "GET" && r.URL.Path == "/": - getStaticFile("../client/index.html", "text/html", w) + getStaticFile("./client/index.html", "text/html", w) case r.Method == "GET" && r.URL.Path == "/rsvp": - getStaticFile("../client/rsvp.html", "text/html", w) + getStaticFile("./client/rsvp.html", "text/html", w) case r.Method == "GET" && r.URL.Path == "/rsvp_confirmed": - getStaticFile("../client/rsvp_confirmed.html", "text/html", w) + getStaticFile("./client/rsvp_confirmed.html", "text/html", w) case r.Method == "GET" && r.URL.Path == "/index.js": - getStaticFile("../client/index.js", "text/javascript", w) + getStaticFile("./client/index.js", "text/javascript", w) case r.Method == "GET" && r.URL.Path == "/rsvp.js": - getStaticFile("../client/rsvp.js", "text/javascript", w) + getStaticFile("./client/rsvp.js", "text/javascript", w) case r.Method == "GET" && r.URL.Path == "/style.css": - getStaticFile("../client/style.css", "text/css", w) + getStaticFile("./client/style.css", "text/css", w) case r.Method == "GET" && r.URL.Path == "/api/rsvps": if !isAuthorized(r) { diff --git a/server/database.go b/database.go similarity index 100% rename from server/database.go rename to database.go diff --git a/server/go.mod b/go.mod similarity index 100% rename from server/go.mod rename to go.mod diff --git a/server/go.sum b/go.sum similarity index 100% rename from server/go.sum rename to go.sum diff --git a/server/main.go b/main.go similarity index 100% rename from server/main.go rename to main.go diff --git a/server/ntfy.go b/ntfy.go similarity index 100% rename from server/ntfy.go rename to ntfy.go diff --git a/server/ntfy_test.go b/ntfy_test.go similarity index 100% rename from server/ntfy_test.go rename to ntfy_test.go diff --git a/server/rsvp.go b/rsvp.go similarity index 100% rename from server/rsvp.go rename to rsvp.go diff --git a/server/rsvp_test.go b/rsvp_test.go similarity index 100% rename from server/rsvp_test.go rename to rsvp_test.go