mirror of
https://github.com/fastapi-practices/fastapi_best_architecture.git
synced 2026-03-13 09:31:31 +08:00
13 lines
486 B
Python
13 lines
486 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
from fastapi import APIRouter
|
|
|
|
from backend.core.conf import settings
|
|
from backend.plugin.oauth2.api.v1.github import router as github_router
|
|
from backend.plugin.oauth2.api.v1.linux_do import router as linux_do_router
|
|
|
|
v1 = APIRouter(prefix=f'{settings.FASTAPI_API_V1_PATH}/oauth2')
|
|
|
|
v1.include_router(github_router, prefix='/github', tags=['Github OAuth2'])
|
|
v1.include_router(linux_do_router, prefix='/linux-do', tags=['LinuxDo OAuth2'])
|