1.0.3 • Published 7 years ago

the-controller-role v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

the-controller-role

Build Status npm Version JS Standard

Role controller for the-server

Installation

$ npm install the-controller-role --save

Usage

'use strict'

const { TheRoleCtrl } = require('the-controller-role')
const theServer = require('the-server')

async function tryExample () {
  let server = theServer({ /* ... */ })

  server.register(
    class extends TheRoleCtrl { /* ... */},
    'role'
  )

  server.listen(3000)
}

tryExample().catch((err) => console.error(err))

API Guide

License

This software is released under the MIT License.

Links

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago