Wire API health endpoint
This commit is contained in:
1 parent
4115646d66
commit
34ae20476f
10 files changed
+104
-21
No files matched your search
@@ -1,8 +1,12 @@
|
||||
import { Injectable } from '@nestjs/common';
|
||||
|
||||
export interface HealthResponse {
|
||||
status: 'ok';
|
||||
}
|
||||
|
||||
@Injectable()
|
||||
export class AppService {
|
||||
getHello(): string {
|
||||
return 'Hello World!';
|
||||
getHealth(): HealthResponse {
|
||||
return { status: 'ok' };
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user