Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- topbar = Navbar(
- '',
- View('Welcome Page', ('welcome')),
- Subgroup('Master',
- View('Option 1', ('config')),
- View('Option 2', ('config')),
- View('Option 3', ('config')),
- View('Option 4', ('config')),
- ),
- View('Rename', ('add_case')),
- View('Logout', ('logout'))
- )
- nav.register_element('top', topbar)
- @app.route('/config', methods=('GET', 'POST'))
- @app.route('/config/', methods=('GET', 'POST'))
- @login_required
- def config() -> str:
- return redirect(ContextURL('/config'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement