UNPKG
ticket-auth-project
Version:
latest (0.0.2)
0.0.2
0.0.1
[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.
ticket-auth-project
/
src
/
auth
/
auth.controller.ts
12 lines
(10 loc)
•
297 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{
Body
,
Controller
,
Post
}
from
'@nestjs/common'
;
import
{
AuthService
}
from
'./auth.service'
;
@Controller
(
'auth'
)
export
class
AuthController
{
constructor
(
private
authService
:
AuthService
) {}
@Post
(
'login'
)
async
login
(
@Body
() req
) {
return
this
.
authService
.
login
(req); } }