Route dashboard
This commit is contained in:
		
							parent
							
								
									2ae101d5f1
								
							
						
					
					
						commit
						f1926ffd99
					
				@ -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:
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user