routes.py
979 Bytes
def includeme(config):
config.add_static_view('static', 'static', cache_max_age=3600)
config.add_static_view('deform_static', 'deform:static')
config.add_route('home', '/')
config.add_route('login', '/login')
config.add_route('logout', '/logout')
config.add_route('change-password', '/change-password')
config.add_route('change-password-done', '/change-password-done')
config.add_route('reset-password', '/reset-password')
config.add_route('reset-password-sent', '/reset-password-sent')
config.add_route('login-by-code-failed', '/login-by-code-failed')
config.add_route('user', '/user')
config.add_route('user-add', '/user/add')
config.add_route('user-edit', '/user/{id}')
config.add_route('user-delete', '/user/{id}/delete')
config.add_route('group', '/group')
config.add_route('group-add', '/group/add')
config.add_route('group-edit', '/group/{id}')
config.add_route('group-delete', '/group/{id}/delete')