From fb61c504e3d552d5cc44c348a5c6020ea0fbc3b2 Mon Sep 17 00:00:00 2001 From: Nate Maninger Date: Mon, 22 Jul 2024 16:27:53 -0700 Subject: [PATCH] use / for request --- api/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/api.go b/api/api.go index 40dfcc5..484f31d 100644 --- a/api/api.go +++ b/api/api.go @@ -88,8 +88,8 @@ func (a *API) handleCreateRequest(jc jape.Context) { // Serve serves the API on the provided listener. func (a *API) Serve(l net.Listener) error { router := jape.Mux(map[string]jape.Handler{ - "GET /request/:id": a.handleGetRequest, - "POST /request": a.handleCreateRequest, + "GET /:id": a.handleGetRequest, + "POST /": a.handleCreateRequest, }) handler := cors.New(cors.Options{ AllowedOrigins: []string{"*"},