Fork me on GitHub
#pedestal
<
2022-11-02
>
agorgl21:11:14

Hello there! I suppose there is some problem with the hello-world example in the pedestal repo? The ::http/routes in the run-dev function are defined as: https://github.com/pedestal/pedestal/blob/master/samples/hello-world/src/hello_world/server.clj#L32 While in the pedestal-service template are defined as: https://github.com/pedestal/pedestal/blob/master/service-template/src/leiningen/new/pedestal_service/server.clj#L21 I see also that they are wrapped with route/expand-routes in some examples and they are not wrapped in some others, what is the correct usage?

souenzzo22:11:36

Both are supported ::http/routes could be • a value that implements expand-routes • a function that returns the expanded route.