Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Adjust API path #111

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backend/src/api/user/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { AutoGuard } from '../../auth/auto.guard';

type SanatizedUser = Omit<User, 'password'>;

@Controller('user')
@Controller('users')
export class UserController {
_sanatizeUser(user: User): SanatizedUser {
const sanatizedUser: SanatizedUser & { password?: string } = user;
Expand All @@ -16,7 +16,7 @@ export class UserController {
/**
* /user/me
*
* Returns information about the current user
* Returns information about the current User
*
* @param req
* @returns
Expand Down
Loading