|
from fastapi import APIRouter
|
|
from pydantic import BaseModel
|
|
from api.middleware.verify_token import VerifyTokenRoute
|
|
|
|
|
|
test = APIRouter(route_class=VerifyTokenRoute)
|
|
|
|
|
|
class Test(BaseModel):
|
|
test: str
|
|
|
|
|
|
@test.post("/test")
|
|
def test(aux: Test):
|
|
return aux.test
|