-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrouter.py
More file actions
26 lines (21 loc) · 940 Bytes
/
Copy pathrouter.py
File metadata and controls
26 lines (21 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""Main API router for the Notion integration."""
from fastapi import APIRouter
from app.core.integrations.notion.api import (
blocks,
comments,
databases,
pages,
webhooks,
)
from app.core.integrations.notion.api.files import router as files_router
from app.core.integrations.notion.api.users import router as users_router
router = APIRouter()
router.include_router(databases.router, prefix="/databases", tags=["Notion Databases"])
router.include_router(pages.router, prefix="/pages", tags=["Notion Pages"])
router.include_router(blocks.router, prefix="/blocks", tags=["Notion Blocks"])
router.include_router(comments.router, prefix="/comments", tags=["Notion Comments"])
router.include_router(users_router, prefix="/users", tags=["Notion Users"])
router.include_router(
webhooks.router, prefix="/webhooks", tags=["Notion Webhooks"]
)
router.include_router(files_router, prefix="/files", tags=["Notion Files"])