Example #1
0
def api_http(ipc_queue=None):
    api.run(host=API.LISTEN_HOST, port=API.LISTEN_PORT, debug=API.DEBUG)
Example #2
0
import os
from yams_api import api
from config import API

api.config.from_object(os.environ.get("FLASK_CONFIG") or "config")
api.jinja_env.trim_blocks = True
api.jinja_env.lstrip_blocks = True

if __name__ == "__main__":
    api.run(host=API.LISTEN_HOST, port=API.LISTEN_PORT, debug=API.DEBUG)
Example #3
0
def api_http(ipc_queue=None):
    api.run(host=API.LISTEN_HOST, port=API.LISTEN_PORT, debug=API.DEBUG)