Codewise
Courses
My learning
Ideas
Leaderboard
YouTube
Courses
My learning
Ideas
Leaderboard
YouTube
Sign in
apps/api-gateway/src/app.controller.ts · EventFlow: NestJS Microservices | Codewise
EventFlow: NestJS Microservices
nestjs-microservices
/
apps
/
api-gateway
/
src
/
app.controller.ts
app.controller.ts
12 lines, 274 B
Raw
1
import
{ Controller, Get }
from
'@nestjs/common'
;
2
import
{ AppService }
from
'./app.service'
;
3
4
@
Controller
()
5
export
class
AppController
{
6
constructor
(
private
readonly
appService
:
AppService
) {}
7
8
@
Get
()
9
getHello
()
:
string
{
10
return
this
.appService.
getHello
();
11
}
12
}