Skip to content

Commit

Permalink
changes 5
Browse files Browse the repository at this point in the history
  • Loading branch information
mekan-allaberdi committed Nov 14, 2020
1 parent 8ced19d commit 22d4dc5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: gunicorn mytube.web:app
web: gunicorn mytube.web.app:app
12 changes: 12 additions & 0 deletions mytube/web/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from flask import Flask

app = Flask(__name__)

from view.video import bp as video_bp
from view.theme import bp as theme_bp

app.register_blueprint(video_bp, url_prefix='')
app.register_blueprint(theme_bp, url_prefix='/theme')

if __name__ == '__main__':
app.run(threaded=True, port=1818)

0 comments on commit 22d4dc5

Please sign in to comment.