1.1.2 • Published 5 years ago

@coofy/koafy v1.1.2

Weekly downloads
2
License
ISC
Repository
-
Last release
5 years ago

基于koa2的koafy框架

一、Decorator控制Koa路由

  • spring
@Controller
public class HelloController{
    @RequestMapping("/hello")
    String hello() {
        return "Hello World";  
    }
}
  • falsk
@app.route("/hello")
def hello():
    return "Hello World"
  • but Express或Koa上的路由
router.get('/hello', async ctx => {
    ctx.body = 'Hello World'
})
  • 封装Koa路由
1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago