UNPKG

generator-nest-js-boilerplate

Version:

This generator will help you to build your own Nest.js Mongodb API using TypeScript 4

16 lines (12 loc) 286 B
import { Injectable } from '@nestjs/common'; import open from 'open'; @Injectable() export default class AppService { async openSwagger(): Promise<void> { const url = 'http://localhost:3000/api'; await open(url); } getHello(): string { return 'Hello world!'; } }