ap-test/ap/__main__.py
Aravinth Manivannan 73430848e8
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: init ap server w webfinger endpoint
2023-10-06 19:14:14 +05:30

12 lines
365 B
Python

if __name__ == "__main__":
from .config import Config
from .db import Database
from .server import app
db = Database()
db.add_user("alice")
config = Config()
config.options["port"] = 9003
config.options["hostname"] = f'lab.batsense.net:{config.options["port"]}'
app.run(host="0.0.0.0", port=config.options["port"], debug=True)