MFlow-0.2.0.8: continuation-based Web framework without continuations.

Safe HaskellNone

MFlow.Forms.Admin

Synopsis

Documentation

adminLoop :: IO ()Source

A small console interpreter with some commands:

sync
Synchronize the cache with persistent storage (see syncCache)
flush
Flush the cache
end
Synchronize and exit
abort
Exit. Do not synchronize

on exception, for example Control-c, it sync and exits. It must be used as the last statement of the main procedure.

wait :: IO a -> IO BoolSource

execute the process and wait for its finalization. then it synchronizes the cache

addAdminWF :: IO ()Source

Install the admin flow in the list of flows handled by HackMessageFlow this gives access to an administrator page. It is necessary to create an admin user with setAdminUser.

The administration page is reached with the path "adminserv"