Skip to content

Instantly share code, notes, and snippets.

@angellandros
Created October 18, 2019 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angellandros/d6ab27b5159a3460982d54abac67c5f1 to your computer and use it in GitHub Desktop.
Save angellandros/d6ab27b5159a3460982d54abac67c5f1 to your computer and use it in GitHub Desktop.
Sample TSOA controller
import { Controller, Get, Route } from 'tsoa';
@Route('')
export class IndexController extends Controller {
@Get('')
public async index() {
return { msg: 'Hello World!' };
}
@Get('/msg')
public msg() {
return { msg: 'This is a message' };
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment