UNPKG
ccq-core
Version:
latest (0.1.1)
0.1.1
koa project with typescript
ccq-core
/
app
/
controllers
/
IndexController.ts
12 lines
(9 loc)
•
219 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import { Controller, Router, Middleware } from
'../../'
@Controller
(
"/"
)
class
IndexController
{
@Router
.get(
'/'
)
@Middleware
.middleware(
'middleware'
) async
index
(ctx,
next
) { ctx.body =
'hello world'
} }