1.0.3 • Published 7 years ago
the-controller-role v1.0.3
the-controller-role
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.