MFlow-0.1.5.3: Web app server for stateful processes with safe, composable user interfaces.

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.

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