Hi Zelphir,

> This was I found out about an issue, but not sure how to solve it. It
> seems like `module-define!` wants to have a symbol as input. But I
> could not figure out how to create a symbol from an identifier.
>
> Here is my updated version of the macro:
[…]
> (define-syntax define-api-route
>   (syntax-rules ()
>     [(define-api-route route http-method my-content-type)
>      (module-define! (current-module)
>                      ;; `route` should be `/container/json` for example.
>                      #{route}#

Use (quote route) instead.

-- 
Ricardo


Reply via email to