diff options
Diffstat (limited to 'haunt/api.scm')
| -rw-r--r-- | haunt/api.scm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/haunt/api.scm b/haunt/api.scm index b6093f6..6a104dd 100644 --- a/haunt/api.scm +++ b/haunt/api.scm @@ -77,8 +77,8 @@ (('POST "api" "comment" "react") put-reaction) (('GET "apps" "gallery") get-gallery) - (('GET "api" "rsvp" "event-info") get-event-info) - (('POST "api" "rsvp") post-event-rsvp) + (('GET "apps" "rsvp" "event-info") get-event-info) + (('POST "apps" "rsvp") post-event-rsvp) (_ (lambda (. args) (not-found request))))) request body)))))) @@ -105,4 +105,4 @@ (values (wrap-response response) resp-body))) (format #t "Server started.~%") -(run-server main-request-handler 'http `(#:addr ,INADDR_ANY #:port 8080)) +(run-server main-request-handler 'http `(#:addr ,INADDR_ANY #:port (%api-server-port))) |