UNPKG

node2sql-cli

Version:

Node project tools

14 lines (11 loc) 433 B
import { BaseContext } from "koa"; import { description, request, summary, tagsAll } from "koa-swagger-decorator"; @tagsAll(["General"]) export default class GeneralController { @request("get", "/") @summary("Welcome page") @description("A simple welcome message to verify the service is up and running.") public static async helloWorld(ctx: BaseContext): Promise<void> { ctx.body = "Hello World!"; } }