nest-shrimpy
Version:
Shrimpy wrapper for NestJS
16 lines (13 loc) • 448 B
text/typescript
import { Controller, Get } from '@nestjs/common';
import { NestShrimpyService } from '../nest-shrimpy.service';
import { ShrimpyApiClient } from 'shrimpy-node';
()
export class NestShrimpyClientController {
constructor(private readonly nestShrimpyService: NestShrimpyService) {}
()
async index() {
const client: ShrimpyApiClient =
this.nestShrimpyService.getShrimpyApiClient();
return client.getStatus();
}
}