Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca04281
commit 3b770f2
Showing
18 changed files
with
373 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
import { CrudRouter } from '@shared/crud'; | ||
import usersService from './users.service'; | ||
import { Constants } from '@core/helpers'; | ||
import { Logger } from '@core/utils'; | ||
import { Router } from '@lib/methods'; | ||
import { Constants, SuccessResponse, NetworkStatus } from '@core/helpers'; | ||
import { Router, Post } from '@lib/methods'; | ||
import { UsersSchema } from './users.model'; | ||
import { Request, Response } from 'express'; | ||
import { translate } from '@lib/translation'; | ||
|
||
const log = new Logger('UsersRouter'); | ||
@Router(Constants.Endpoints.USERS, { | ||
crud: { | ||
create: [] | ||
} | ||
}) | ||
@Router(Constants.Endpoints.USERS) | ||
export class UsersRouter extends CrudRouter<UsersSchema> { | ||
constructor() { | ||
super(usersService); | ||
} | ||
|
||
@Post('') | ||
public async create(req: Request, res: Response) { | ||
return super.create(req, res); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.