mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-09-21 21:15:13 +00:00
* Add Linux Do OAuth2 login * Adapt to linux do oauth2 email field * Fix get user email logic * Fix lint
12 lines
431 B
Python
12 lines
431 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
from fastapi import APIRouter
|
|
|
|
from backend.app.admin.api.v1.auth2.github import router as github_router
|
|
from backend.app.admin.api.v1.auth2.linux_do import router as linux_do_router
|
|
|
|
router = APIRouter(prefix='/auth2')
|
|
|
|
router.include_router(github_router, prefix='/github', tags=['GitHub OAuth2'])
|
|
router.include_router(linux_do_router, prefix='/linuxdo', tags=['Linux Do OAuth2'])
|