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


(define (user req)
      #:mime-type #"application/json"
      "{hello: User}"))

; routers.rkt
#lang racket



(provide api-dispatch)

(define-values (api-dispatch api-url)
     [("user") user]
     [else not-found]

when the app start, i use post method request, 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.

Reply via email to