feat: Update endpoint something-new

This commit is contained in:
Backend IM Bot 2025-03-11 15:17:45 +00:00
parent 734d7950d4
commit 2ca0f0582d

View File

@ -0,0 +1,14 @@
import random
import string
from fastapi import APIRouter, HTTPException
router = APIRouter()
@router.post("/generate-selection-code", response_model=str)
async def generate_selection_code():
"""
Generate a random selection code
"""
selection_code = ''.join(random.choices(string.ascii_uppercase + string.digits, k=6))
return selection_code