Route dashboard
This commit is contained in:
parent
2ae101d5f1
commit
f1926ffd99
@ -117,6 +117,33 @@ def index():
|
||||
else:
|
||||
redirect('/')
|
||||
|
||||
@app.route('/dashboard')
|
||||
def index():
|
||||
params = {
|
||||
"mako" : {
|
||||
"website" : template_dashboard.main(directory.page["dashboard"], "dashboard")
|
||||
}
|
||||
}
|
||||
return dashboard_dashboard.dashboard().html(params)
|
||||
|
||||
@app.route('/dashboard/roles')
|
||||
def index():
|
||||
params = {
|
||||
"mako" : {
|
||||
"website" : template_dashboard.main(directory.page["dashboard"], "roles")
|
||||
}
|
||||
}
|
||||
return dashboard_roles.roles().html(params)
|
||||
|
||||
@app.route('/dashboard/users')
|
||||
def index():
|
||||
params = {
|
||||
"mako" : {
|
||||
"website" : template_dashboard.main(directory.page["dashboard"], "users")
|
||||
}
|
||||
}
|
||||
return dashboard_users.users().html(params)
|
||||
|
||||
@app.route('/api/auth/registration/register/<roles>', method='POST')
|
||||
def index(roles):
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user