-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmethods.py
More file actions
41 lines (24 loc) · 758 Bytes
/
methods.py
File metadata and controls
41 lines (24 loc) · 758 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from fastapi import APIRouter, Request
from base import get_base_resp
methods_router = APIRouter(prefix="", tags=["methods"])
@methods_router.get("/get")
async def get(request:Request):
return get_base_resp(request)
@methods_router.get("/post")
async def post(request:Request):
return get_base_resp(request)
@methods_router.get("/patch")
async def patch(request:Request):
return get_base_resp(request)
@methods_router.get("/option")
async def option(request:Request):
return get_base_resp(request)
@methods_router.get("/delete")
async def delete(request:Request):
return get_base_resp(request)
@methods_router.get("/head")
async def head():
return "head"
@methods_router.get("/put")
async def put():
return "put"