Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@naxmefy/koa-controllers

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@naxmefy/koa-controllers

koa2 controllers

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

node-koa-controllers

npm version

Build Status Coverage Status

Installation

$ npm install --save @naxmefy/koa-controllers

Usage

import * as Controllers from '@naxmefy/koa-controllers'

class MyKoaController extends Controllers.AppController {
  async myUsers (ctx) {
    this.body = yield ctx.db.findMyUsers()
  }

  async myUsersView (ctx) {
    ctx.state.users = yield ctx.db.findMyUsers()
    ctx.render('userListView')
  }
}

FAQs

Package last updated on 07 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts