summaryrefslogtreecommitdiff
path: root/src/web_api.py
blob: beaab57c7e03ef03a683c1bd3548c7c7c38062fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python3
from home.web_api import get_app
from typing import Optional
from flask import Flask

app: Optional[Flask] = None


if __name__ in ('__main__', 'app'):
    app = get_app()

if __name__ == '__main__':
    app.run(host='0.0.0.0')