func InstallSessionWares(app *forest.App, manager SessionManager) { app.InstallWare("SessionDel", SessionDel(app, manager), forest.WareInstalled) app.InstallWare("SessionGet", SessionGet(app, manager), forest.WareInstalled) app.InstallWare("SessionSet", SessionSet(app, manager), forest.WareInstalled) }
func InstallErrorWares(app *forest.App) { app.InstallWare("BadRequest", ErrorsBadRequest(app), forest.WareInstalled) app.InstallWare("Conflict", ErrorsConflict(app), forest.WareInstalled) app.InstallWare("MethodNotAllowed", ErrorsMethodNotAllowed(app), forest.WareInstalled) app.InstallWare("NotFound", ErrorsNotFound(app), forest.WareInstalled) app.InstallWare("ServerError", ErrorsServerError(app), forest.WareInstalled) app.InstallWare("Unauthorized", ErrorsUnauthorized(app), forest.WareInstalled) }
func InstallSecurityWares(app *forest.App) { app.InstallWare("Authenticate", Authenticate(app), forest.WareInstalled) app.InstallWare("CSRF", CSRF(app), forest.WareInstalled) }
func InstallBodyParser(app *forest.App) { app.InstallWare("BodyParser", BodyParser(app), forest.WareInstalled) }