Ah thanks! Sometimes one does not see the simple solution. I was
thinking that it would have to be something complicated.
On 2019-07-20 22:37, Ricardo Wurmus wrote:
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.