Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { BaseController, Context, get, post } from 'daruk';
export default class Index extends BaseController {
@get('/')
@post('/')
public index(ctx: Context, next: Function) {
ctx.body = 'hello world';
}
}