We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Routing with just named namespaces feels good, but using the kekkonen.core/namespace is hairy. We could use the hiccup-syntax instead:
kekkonen.core/namespace
(defn api [{:keys [db]}] [:api {:interceptors [authenticated]} [:public 'public.api] [:process (process/generate-handlers db)] [:users {:interceptors [logged-in]} users/add-user users/remove-user users/list-users users/change-password] [:admin {:roles #{:admin}} admin/delete-db]])
which would allow to store the namespaces separately, in spirit of defroutes:
defroutes
(def user-api [:users {:interceptors [logged-in]} users/add-user users/remove-user users/list-users users/change-password]) (defn api [{:keys [db]}] [:api {:interceptors [authenticated]} [:public 'public.api] [:process (process/generate-handlers db)] user-api [:admin {:roles #{:admin}} admin/delete-db]])
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Routing with just named namespaces feels good, but using the
kekkonen.core/namespace
is hairy. We could use the hiccup-syntax instead:which would allow to store the namespaces separately, in spirit of
defroutes
:The text was updated successfully, but these errors were encountered: