aboutsummaryrefslogtreecommitdiff
path: root/api/main.py
blob: 55881380294017a891e6b6f310e40fc14a0040fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from flask import Flask
from flask_socketio import SocketIO

app = Flask(__name__)

from status import status
from user.info import info
from auth.signup import signup
from auth.login import login
from auth.login_token import token
from game.new import new_game
from game.socket import run

app.register_blueprint(status, url_prefix='/')
app.register_blueprint(info, url_prefix='/user')
app.register_blueprint(signup, url_prefix='/auth')
app.register_blueprint(login, url_prefix='/auth')
app.register_blueprint(token, url_prefix='/auth')
app.register_blueprint(new_game, url_prefix='/game')

if __name__ == "__main__": run(app)