-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathanything.py
More file actions
55 lines (34 loc) · 997 Bytes
/
anything.py
File metadata and controls
55 lines (34 loc) · 997 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
from fastapi import APIRouter
anything_router = APIRouter(
prefix="/anything", tags=["anything"]
)
@anything_router.delete("")
async def delete_anything():
return "delete_anything"
@anything_router.patch("")
async def patch_anything():
return "patch_anything"
@anything_router.get("")
async def get_anything():
return "get_anything"
@anything_router.post("")
async def post_anything():
return "post_anything"
@anything_router.put("")
async def put_anything():
return "put_anything"
@anything_router.delete("/{anything}")
async def delete_anything_i(anything):
return anything
@anything_router.patch("/anything")
async def patch_anything_i(anything):
return anything
@anything_router.get("/{anything}")
async def get_anything_i(anything):
return anything
@anything_router.post("/{anything}")
async def post_anything_i(anything):
return anything
@anything_router.put("/{anything}")
async def put_anything_i(anything):
return anything