const classafSleepSafe::SleepSafeMiddleware
sys::Obj afSleepSafe::SleepSafeMiddleware : afBedSheet::Middleware
BedSheet middleware that invokes the Guards.
SleepSafeMiddleware
is contributed with the following:
@Contribute { serviceType=MiddlewarePipeline# } Void contributeMiddleware(Configuration config, SleepSafeMiddleware middleware) { config.set("afSleepSafe.guards", middleware).after("afBedSheet.assets").before("afBedSheet.routes") }
Assets are not purposely not protected to prevent HTTP sessions being loaded (potentially from a database) on every request. Override Middleware ordering to change this behaviour.