浏览代码

Update registro-run.py

父节点
当前提交
d71167d3e4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      registro-run.py

+ 1
- 1
registro-run.py 查看文件

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"]: