@@ -0,0 +1,7 @@
+from flask import Blueprint
+
+bp = Blueprint('api', __name__)
+@bp.route('/')
+def main():
+ return 'Test'
@@ -1,12 +1,12 @@
-from flask import render_template
-from app import app
+from flask import Blueprint, render_template
+bp = Blueprint('views', __name__)
-@app.route('/')
def home():
return 'hello world!!'
-@app.route('/template')
+@bp.route('/template')
def template():
return render_template('home.html')