trackfinder

Express route finder

trackfinder

Simple Express route finder

Install the module with: npm install trackfinder

var TrackFinder = require('trackfinder');
 
var app = express();
 
 
TrackFinder.register(app, {
    path:'./routes',
    config: config
});

This will load all files inside the routes directory. The most simple route file would look like this:

'use strict';
 
module.exports = function(appoptions){
    console.log('- pets: register routes');
 
    app.get('/pets', function(reqres){
        res.json({
            pets: ['Colonel Meow', 'Casper', 'Chase No Face', 'Cherry Pop']
        });
    });
};

(Coming soon)

(Coming soon)

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.

(Nothing yet)

Copyright (c) 2014 goliatone
Licensed under the MIT license.

Integrate file finder stuff: https://www.npmjs.org/package/file-magic