Route dashboard

This commit is contained in:
Dita Aji Pratama 2024-09-26 12:38:31 +07:00
parent 2ae101d5f1
commit f1926ffd99

View File

@ -117,6 +117,33 @@ def index():
else: else:
redirect('/') 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') @app.route('/api/auth/registration/register/<roles>', method='POST')
def index(roles): def index(roles):
try: try: