Akron | ca9bd98 | 2016-12-06 16:59:57 +0100 | [diff] [blame^] | 1 | import service as main |
| 2 | from service import * |
| 3 | import config |
| 4 | import admin |
| 5 | from models import UserEncoder |
| 6 | import providers |
| 7 | |
| 8 | |
| 9 | __author__ = 'hanl' |
| 10 | |
| 11 | if __name__ == '__main__': |
| 12 | # for deployment secure copy |
| 13 | # scp -r * support@korap3:/home/support/service |
| 14 | |
| 15 | app.config.from_object(config) |
| 16 | app.json_encoder = UserEncoder |
| 17 | app.debug = config.DEBUG |
| 18 | app.register_blueprint(user.router, url_prefix='/user') |
| 19 | app.register_blueprint(admin.router, url_prefix='/admin') |
| 20 | providers.init_app(app.config) |
| 21 | app.run() |