26fa546f67
- 七端口 RBAC、select-identity、JWT、审计 - FastAPI + SQLAlchemy + SQLite,/auth /opc /admin /agents 等路由
16 lines
267 B
Python
16 lines
267 B
Python
# -*- coding: utf-8 -*-
|
|
"""``python -m app`` 快捷启动。"""
|
|
from __future__ import annotations
|
|
|
|
import uvicorn
|
|
|
|
from . import config
|
|
|
|
|
|
def main() -> None:
|
|
uvicorn.run("app.main:app", host=config.HOST, port=config.PORT)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|