(action-for-routes routes)
(fallback-not-found-page _)
(find-by-route-name routes k)
(handler not-found-page)
(match request-route route)
(method-verb? value)
(param-method method)
(params s)
(pattern s)
(query-string m)
(replacement match m)
(resolve-route val)
(resolve-route-fn f)
(resource & args)
Creates a set of seven functions that map to a conventional set of named functions. Generates routes that look like this: [[:get "/resources" 'resources/index] [:get "/resources/:id" 'resources/show] [:get "/resources/new" 'resources/new] [:get "/resources/:id/edit" 'resources/edit] [:post "/resources" 'resources/create] [:put "/resources/:id" 'resources/update] [:delete "/resources/:id" 'resources/delete]] Examples: (resource 'items/show 'items/index) (resource 'items/create 'items/delete) (resource 'items/index 'items/create) (resource 'items/index) (resource :items)
Creates a set of seven functions that map to a conventional set of named functions. Generates routes that look like this: [[:get "/resources" 'resources/index] [:get "/resources/:id" 'resources/show] [:get "/resources/new" 'resources/new] [:get "/resources/:id/edit" 'resources/edit] [:post "/resources" 'resources/create] [:put "/resources/:id" 'resources/update] [:delete "/resources/:id" 'resources/delete]] Examples: (resource 'items/show 'items/index) (resource 'items/create 'items/delete) (resource 'items/index 'items/create) (resource 'items/index) (resource :items)
(resource-route prefix route-ns route)
(resource-routes)
(resource-routes symbols)
(route method uri f)
(route method routes uri f)
Sugar for making a route vector
Sugar for making a route vector
(route-middleware-fn val)
(route-name route)
(route-params req-uri route-uri)
(route-str s m)
(route? val)
(routes? args)
(unqualified-keyword? k)
(url-encode s)
(url-for-routes routes)
(url-for-routes-args? k m)
(verb? value)
(wrap-route route middleware)
(wrap-route-info handler routes)
(wrap-routes routes middleware)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close