blob: 9af81eb7c56cc6f35a609cadc797bd800b441bdb [file] [log] [blame]
Akronca9bd982016-12-06 16:59:57 +01001import service as main
2from service import *
3import config
4import admin
5from models import UserEncoder
6import providers
7
8
9__author__ = 'hanl'
10
11if __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()