import * as Koa from "koa" ; import { Controller } from "../../../index" ; import { All , Get } from "../../../src/decorators" ; export default class UserController extends Controller { @ Get ( "/" ) async index ( ctx ) { ctx . body = "hello world" ; } @ Get ( "/view" ) async view ( ctx ) { await ctx . render ( "index" ) ; } }