Compare commits

..

2 commits

10 changed files with 7 additions and 7 deletions

View file

@ -6,7 +6,7 @@
<body> <body>
<h1 class="title fontXL textCenter backgroundLightGreen colorWhite">Collin and Lucy's Wedding</h1> <h1 class="title fontXL textCenter backgroundLightGreen colorWhite">Collin and Lucy's Wedding</h1>
<div class="contents fontM"> <div class="contents fontM">
See you there! Thanks for the response!
<br/> <br/>
<a href="/">Back</a> <a href="/">Back</a>
</div> </div>

View file

@ -78,22 +78,22 @@ func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
switch true { switch true {
case r.Method == "GET" && r.URL.Path == "/": 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": 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": 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": 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": 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": 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": case r.Method == "GET" && r.URL.Path == "/api/rsvps":
if !isAuthorized(r) { if !isAuthorized(r) {