main.py 379 B

1234567891011121314151617181920212223
  1. from fastapi import FastAPI
  2. from pydantic import BaseModel, ValidationError
  3. from typing import List, Optional
  4. from datetime import datetime
  5. from typing import Dict
  6. from routers import items,files
  7. import uvicorn
  8. app = FastAPI()
  9. app.include_router(files.router)
  10. app.include_router(items.router)
  11. if __name__ == '__main__':
  12. uvicorn.run(app,host="127.0.0.1",port=8000)