UNPKG

generator-nest-js-boilerplate

Version:

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

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