summary refs log tree commit diff
path: root/src/api/routes/budgetRoutes.js
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-06-03 21:28:47 +0200
committerRory& <root@rory.gay>2025-06-03 21:28:47 +0200
commit162f97975a6a784cbf4c9b7d5d2b1ea6799351e9 (patch)
tree5691d1aaa179b2847b08ba2b4b6322094e39d7e2 /src/api/routes/budgetRoutes.js
parenttestFrontend: add activity for almost all endpoints (diff)
downloadnodejs-final-assignment-162f97975a6a784cbf4c9b7d5d2b1ea6799351e9.tar.xz
Remove admin account routes, fix multiple routes
Diffstat (limited to 'src/api/routes/budgetRoutes.js')
-rw-r--r--src/api/routes/budgetRoutes.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/api/routes/budgetRoutes.js b/src/api/routes/budgetRoutes.js

index bcb9711..440c26d 100644 --- a/src/api/routes/budgetRoutes.js +++ b/src/api/routes/budgetRoutes.js
@@ -16,7 +16,7 @@ import { SafeNSoundError } from '#util/error.js'; * @type {RouteDescription} */ export const getBudgetByUserRoute = { - path: '/budget/:id', + path: '/user/:id/budget', methods: { get: new RouteMethod({ middlewares: [requireMonitor], @@ -41,7 +41,7 @@ export const getBudgetByUserRoute = { * @type {RouteDescription} */ export const addBudgetByUserRoute = { - path: '/budget/:id/add', + path: '/user/:id/budget/add', methods: { get: new RouteMethod({ description: 'Add budget to a monitored user', @@ -76,7 +76,7 @@ export const addBudgetByUserRoute = { /** * @type {RouteDescription} */ -export const getBudgetRoute = { +export const userBudgetRoute = { path: '/budget/@me', methods: { get: new RouteMethod({