(acl-restrict)
(acl-restrict m)
:enter checks access control :leave place for tightening db query via provided owner-fn
:enter checks access control :leave place for tightening db query via provided owner-fn
(db-access)
(db-access on-new-session)
Runs HoneySQL query provided in (:query state) Injects the result to (state [:response-data :db-data]) Optional parameter function: executed on :enter, if session interceptors creates new-session key in session data for instance fetching user from db by it's id
Runs HoneySQL query provided in (:query state) Injects the result to (state [:response-data :db-data]) Optional parameter function: executed on :enter, if session interceptors creates new-session key in session data for instance fetching user from db by it's id
(muuntaja)
(muuntaja instance)
Muuntaja interceptor wrapped into xiana monad
Muuntaja interceptor wrapped into xiana monad
Extract parameters from request, should be middleware, or interceptor
Extract parameters from request, should be middleware, or interceptor
(require-logged-in)
(require-logged-in or-else)
Tries to extract userId from headers/authorization, and adds it as user/id into session-data. If fails, it executes 'or-else' parameter function. By default it inserts a new guest user
Tries to extract userId from headers/authorization, and adds it as user/id into session-data. If fails, it executes 'or-else' parameter function. By default it inserts a new guest user
:enter Extracts session-id from headers. Tries to get last session with the same id from session backend :leave Stores actual session in session backend TODO session Time To Leave
:enter Extracts session-id from headers. Tries to get last session with the same id from session backend :leave Stores actual session in session backend TODO session Time To Leave
Place for business logic based on db-data, before rendering view
Place for business logic based on db-data, before rendering view
Executes view function to create response
Executes view function to create response
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close