Compare commits
2 commits
350952b2fe
...
6a4f578cfc
| Author | SHA1 | Date | |
|---|---|---|---|
| 6a4f578cfc | |||
| 04b1dcce25 |
10 changed files with 7 additions and 7 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
|
|
@ -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) {
|
||||||
Loading…
Add table
Reference in a new issue