module Web.FrontController where import IHP.RouterPrelude import IHP.LoginSupport.Middleware import Generated.Types import Web.Types import Web.Routes () -- Controllers import Web.Controller.Hubs () import Web.Controller.Widgets () import Web.Controller.InteractionEvents () import Web.Controller.Annotations () import Web.Controller.Sessions () instance FrontController WebApplication where controllers = [ parseRoute @SessionsController , parseRoute @HubsController , parseRoute @WidgetsController , parseRoute @InteractionEventsController , parseRoute @AnnotationsController ] instance InitControllerContext WebApplication where initContext = do setLayout defaultLayout initAuthentication @User defaultLayout :: Layout defaultLayout inner = [hsx|