Skip to content

Instantly share code, notes, and snippets.

@backmeupplz
Created October 23, 2019 14:24
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 backmeupplz/257550f3c1acad7a96be356e8a879d1f to your computer and use it in GitHub Desktop.
Save backmeupplz/257550f3c1acad7a96be356e8a879d1f to your computer and use it in GitHub Desktop.
public.ts
import { Controller, Get } from 'koa-router-ts'
import { Context } from 'koa'
@Controller('/')
export default class {
@Get('/')
async facebook(ctx: Context) {
ctx.body = "Cool cool cool cool, noice"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment