Hi everyone, recently i start learn write a web api service in racket,but in dispatch-rules part i had a problem.
; handler.rkt #lang racket (require web-server/http) (define (user req) (response/xexpr #:mime-type #"application/json" "{hello: User}")) ; routers.rkt #lang racket (require web-server/dispatch "handlers/handler.rkt" (provide api-dispatch) (define-values (api-dispatch api-url) (dispatch-rules [("user") user] [else not-found] )) when the app start, i use post method request 127.0.0.1:8000/user, but i got 404 condition, how to make user function accept post method?? thank you. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.