24 lines
827 B
Python
24 lines
827 B
Python
from fastapi import APIRouter, Depends
|
|
from common.deps import verify_api_key
|
|
from models.channel import ChannelVerifyRequest, ChannelVerifyResponse
|
|
|
|
router = APIRouter(prefix="/api/channels", tags=["channels"], dependencies=[Depends(verify_api_key)])
|
|
|
|
|
|
# will not use
|
|
|
|
@router.post("/verify", response_model=ChannelVerifyResponse)
|
|
async def verify_channels(body: ChannelVerifyRequest):
|
|
return ChannelVerifyResponse(
|
|
youtube={
|
|
"handle": body.youtube,
|
|
"verified": True,
|
|
"display_name": "바노바기 BANOBAGI",
|
|
"followers": 12345,
|
|
} if body.youtube else None,
|
|
instagram=[
|
|
{"handle": handle, "verified": "unverifiable", "note": "Instagram 로그인 벽"}
|
|
for handle in body.instagram
|
|
] if body.instagram else None,
|
|
)
|