Skip to content

Commit

Permalink
Generic routes in template generator
Browse files Browse the repository at this point in the history
  • Loading branch information
1602 committed Nov 25, 2011
1 parent e7cb48c commit eaa386b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators.js
Expand Up @@ -106,7 +106,7 @@ exports.list = function () {

var db = options.db;

createFile('config/routes.js', 'exports.routes = function (map) {\n};');
createFileByTemplate('config/routes.js', 'config/routes.js');
// createFileByTemplate('config/requirements.json', 'requirements.json');
var srv = createFileByTemplate('server', 'server');
var secret = require('crypto').createHash('sha1').update(Math.random().toString()).digest('hex');
Expand Down
9 changes: 9 additions & 0 deletions templates/config/routes.js
@@ -0,0 +1,9 @@
exports.routes = function (map) {



// Generic routes. Add all your routes below this line
// feel free to remove generic routes
map.all(':controller/:action');
map.all(':controller/:action/:id');
};

0 comments on commit eaa386b

Please sign in to comment.