api.py 621 B

1234567891011121314
  1. from fastapi import APIRouter
  2. from api.api_v1.endpoints import receive_message
  3. from api.api_v1.endpoints import send_message
  4. from api.api_v1.endpoints import open_message
  5. from api.api_v1.endpoints import message
  6. api_router = APIRouter()
  7. api_router.include_router(receive_message.router, prefix="receive_message", tags=["收到的信件"])
  8. api_router.include_router(send_message.router, prefix="send_message", tags=["寄出的信件"])
  9. api_router.include_router(open_message.router, prefix="open_message", tags=["公开留言"])
  10. api_router.include_router(message.router, prefix="message", tags=["信件具体内容"])