#!/usr/bin/python3
# -*- coding: utf-8 -*-
from __future__ import absolute_import

from flask import Flask

import v1


def create_app():
    app = Flask(__name__, static_folder='static')
    app.register_blueprint(
        v1.bp,
        url_prefix='/v1')
    return app

if __name__ == '__main__':
    # create_app().run(debug=True,port=5002, threaded=True)
    create_app().run(debug=True, port=5002, threaded=True, host=('0.0.0.0'))