Commit fea5f2e8 by Hiago Rafael

oi

parent 1b3c313b
from flask import Flask, render_template, request, redirect
from models import Animal
......@@ -10,6 +9,10 @@ animais = []
def index():
return render_template('index.html', animais=animais)
@app.route('/cadastro')
def cadastro():
return render_template('cadastro.html')
@app.route('/adicionar', methods=['POST'])
def adicionar():
nome = request.form['nome']
......@@ -29,6 +32,3 @@ def excluir(id):
if __name__ == '__main__':
app.run(debug=True)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment