BoolJS/booljs-express

View on GitHub
example/routes/dog.js

Summary

Maintainability
A
0 mins
Test Coverage
'use strict';

module.exports = function (app) {
    var dog = new app.controllers.Dog();

    return [
        {
            method: 'get',
            url: '/dog',
            action: dog.list,
            cors: true
        },
        {
            method: 'get',
            url: '/error',
            action: dog.error,
            cors: true
        }
    ];
};