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) 279 B
import { Injectable } from '@nestjs/common'; import open from 'open'; @Injectable() export default class AppService { getHelloMessage() { return 'Hello!'; } async openSwagger(): Promise<void> { const url = 'http://localhost:3000/api'; await open(url); } }