main.py 253 B

12345678910111213
  1. # -*- coding: utf-8 -*-
  2. import uvicorn
  3. from fastapi import FastAPI
  4. from app.api.routers import targets
  5. app = FastAPI()
  6. app.include_router(targets.router, prefix='/targets')
  7. if __name__ == '__main__':
  8. uvicorn.run(app, host='0.0.0.0', port=8000)