|
|
|
|
58
|
|
58
|
|
59
|
|
59
|
|
60
|
@app.route('/be/<user>/<action>/<tipo>', methods=['GET', 'POST'])
|
60
|
@app.route('/be/<user>/<action>/<tipo>', methods=['GET', 'POST'])
|
61
|
-def dispatcher(user, action, tipo):
|
|
|
|
|
61
|
+def database(user, action, tipo):
|
62
|
if not user in ["admin", "estudiante", "enfermera", "encargado", "facultad"]:
|
62
|
if not user in ["admin", "estudiante", "enfermera", "encargado", "facultad"]:
|
63
|
return render_template('login.html') # Mejor error
|
63
|
return render_template('login.html') # Mejor error
|
64
|
if not action in ["list", "view", "edit", "add"]:
|
64
|
if not action in ["list", "view", "edit", "add"]:
|