Skip to content
Snippets Groups Projects
Commit 759636d0 authored by Hyunseok_Sang's avatar Hyunseok_Sang
Browse files

Flask app과 router 관리파일 추가

parent f3926500
No related branches found
No related tags found
No related merge requests found
from flask import Flask
from router_creator import create_router
app = Flask(__name__)
app = create_router(app)
if __name__ == '__main__':
app.run(debug=True)
from controllers.face_controller import face_controller
from controllers.object_controller import object_controller
from controllers.image_controller import image_controller
def create_router(app):
controllers = [face_controller, object_controller, image_controller]
for controller in controllers:
app.register_blueprint(controller)
return app
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment