From 0e4c236b8a52af749b9c24f67bc33e0ff884d1a7 Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Sat, 17 Aug 2024 15:48:32 -0700 Subject: [PATCH] remove trailing slash for kennel route --- api/serve.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/serve.go b/api/serve.go index e205ce5..a8ba0ad 100644 --- a/api/serve.go +++ b/api/serve.go @@ -173,7 +173,7 @@ func MakeServer(argv *args.Arguments, dbConn *sql.DB) *http.Server { LogRequestContinuation(requestContext, r, w)(auth.VerifySessionContinuation, FailurePassingContinuation)(hcaptcha.CaptchaVerificationContinuation, hcaptcha.CaptchaVerificationContinuation)(guestbook.SignGuestbookContinuation, FailurePassingContinuation)(guestbook.ListGuestbookContinuation, guestbook.ListGuestbookContinuation)(hcaptcha.CaptchaArgsContinuation, hcaptcha.CaptchaArgsContinuation)(template.TemplateContinuation("guestbook.html", true), template.TemplateContinuation("guestbook.html", true))(LogExecutionTimeContinuation, LogExecutionTimeContinuation)(IdContinuation, IdContinuation) }) - mux.HandleFunc("GET /kennel/", func(w http.ResponseWriter, r *http.Request) { + mux.HandleFunc("GET /kennel", func(w http.ResponseWriter, r *http.Request) { requestContext := makeRequestContext() LogRequestContinuation(requestContext, r, w)(kennel.GetKennelContinuation, FailurePassingContinuation)(LogExecutionTimeContinuation, LogExecutionTimeContinuation)(IdContinuation, IdContinuation) })