forked from xcloudlive/flask-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.py
executable file
·26 lines (23 loc) · 858 Bytes
/
api.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/python
# -*- coding: utf-8 -*-
# from flask import Flask, request, jsonify, make_response, send_from_directory
# from flask_sqlalchemy import SQLAlchemy
# from sqlalchemy import desc
# import uuid
# from werkzeug.security import generate_password_hash, check_password_hash
# import jwt
# import datetime
# from functools import wraps
from model import app
from game import game_api
from user import user_api
from kifu import kifu_api
from util import util_api
app.register_blueprint(user_api, url_prefix='/users')
app.register_blueprint(game_api, url_prefix='/games')
app.register_blueprint(kifu_api, url_prefix='/kifus')
app.register_blueprint(util_api, url_prefix='/util')
if __name__ == '__main__':
app.run(host='0.0.0.0', debug=False,
ssl_context=('cert.pem', 'privkey.pem'))
# db.create_all()