Skip to content

Commit

Permalink
refactor(route): rename user route to users
Browse files Browse the repository at this point in the history
  • Loading branch information
tranduykhang1 committed Jun 5, 2024
1 parent 96b8ad8 commit 0942cdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/core/routers/user.router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { controllerContainers } from '../../containers/controller.container'
const router = express.Router()

/**
* GET /api/v1/user/me
* GET /api/v1/users/me
* @summary Get current user
* @tags USER
* @return {string} 200 - success response - application/json
Expand Down
2 changes: 1 addition & 1 deletion src/config/server.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const ServerConfig: ServerConfig = Object.freeze({
static: [],
routers: [
{ csrf: false, path: '/api/v1/auth', file: '../app/core/routers/auth.router' },
{ csrf: false, path: '/api/v1/user', file: '../app/core/routers/user.router' }
{ csrf: false, path: '/api/v1/users', file: '../app/core/routers/user.router' }
]
}
})

0 comments on commit 0942cdb

Please sign in to comment.