rascunho

commit 95f294757991bd571d583f422a4fde9c5f19d57c

Author: Pedro Lucas Porcellis <pedrolucasporcellis@gmail.com>

Lay the non-api flow

 core/blueprints/basic.py | 13 +++++++++++++


diff --git a/core/blueprints/__init__.py b/core/blueprints/__init__.py
new file mode 100644
index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391
Binary files /dev/null and b/core/blueprints/__init__.py differ




diff --git a/core/blueprints/basic.py b/core/blueprints/basic.py
new file mode 100644
index 0000000000000000000000000000000000000000..9d160f4fb475f876b622599d2f77cb8883464b92
--- /dev/null
+++ b/core/blueprints/basic.py
@@ -0,0 +1,13 @@
+from flask import Blueprint, render_template, request
+
+basic = Blueprint('basic', __name__)
+
+@basic.route("/", methods = ['GET', 'POST'])
+def index():
+    if request.method == "GET":
+        return render_template('index.html')
+    else:
+        return create(request.form)
+
+def create(params):
+    return params