This commit is contained in:
2021-08-10 15:41:22 +08:00
parent 44d8561ed0
commit 9ad821a28e
5 changed files with 35 additions and 3 deletions

View File

@@ -1,3 +1,5 @@
from flask import Blueprint
main = Blueprint('main', __name__)
from . import views, errors

0
app/main/errors.py Normal file
View File

7
app/main/views.py Normal file
View File

@@ -0,0 +1,7 @@
from . import main
import json
@main.route('/', methods=['GET', 'POST'])
def index():
return json.dumps({'Message': 'Hello, world'})