Skip to content

Commit

Permalink
refactor(operations): change endpoint paths
Browse files Browse the repository at this point in the history
  • Loading branch information
andiserg committed Jul 28, 2023
1 parent 2d2bc0b commit dbb4947
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routers/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
router = APIRouter(prefix="/operations")


@router.post("/create/", response_model=OperationSchema, status_code=201)
@router.post("/", response_model=OperationSchema, status_code=201)
async def create_operation_view(
operation_schema: OperationCreateSchema,
current_user: User = Depends(get_current_user),
Expand All @@ -28,7 +28,7 @@ async def create_operation_view(
return await create_operation(uow, current_user.id, operation_schema)


@router.get("/list/", response_model=list[OperationSchema])
@router.get("/", response_model=list[OperationSchema])
async def read_operations_view(
current_user: User = Depends(get_current_user),
uow: AbstractUnitOfWork = Depends(get_uow),
Expand Down

0 comments on commit dbb4947

Please sign in to comment.