koa-router-controller

0.0.1 • Public • Published

what?! Controllers for koa.

hold on, hold on! Here's something great.

var controller = require('koa-router-controller');
 
var myController = controller({
    list: function *() {
        // Implement me!
    },
 
    show: function *() {
        // Implement me!
    },
 
    create: function *() {
        // Implement me!
    },
 
    update: function *() {
        // Implement me!
    },
 
    remove: function *() {
        // Implement me!
    }
});
npm install koa-router-controller

Readme

Keywords

none

Package Sidebar

Install

npm i koa-router-controller

Weekly Downloads

2

Version

0.0.1

License

MIT

Last publish

Collaborators

  • mikaa123