Skip to content

Commit 109b463

Browse files
Abdullah KhalidAbdullah Khalid
authored andcommitted
endpoints made more descriptive
1 parent 8be30f9 commit 109b463

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gs/backend/api/v1/mcc/endpoints/commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
commands_router = APIRouter(tags=["MCC", "Commands"])
1313

1414

15-
@commands_router.post("/")
15+
@commands_router.post("/create")
1616
async def create_command(payload: dict[str, Any]) -> Commands:
1717
"""
1818
Create a new command.
@@ -23,7 +23,7 @@ async def create_command(payload: dict[str, Any]) -> Commands:
2323
return create_commands(payload)
2424

2525

26-
@commands_router.delete("/{command_id}")
26+
@commands_router.delete("/delete/{command_id}")
2727
async def delete_command(command_id: UUID) -> dict[str, Any]:
2828
"""
2929
Delete a command by ID.

0 commit comments

Comments
 (0)