current_web
Test web UI for OCurrent
1024" x-on:close-sidebar="sidebar=window.innerWidth > 1024 && true">
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Library current_web
class type raw_resource = object ... end
val v :
?name:string ->
?authn:( csrf:string -> Uri.t ) ->
?secure_cookies:bool ->
has_role:( User.t option -> Role.t -> bool ) ->
raw_resource Routes.route list ->
t
v ~name ~authn ~has_role routes
is a site named name
(used for the HTML title, etc) that uses authn
to authenticate users and has_role
to control what they can do.