Skip to content

Instantly share code, notes, and snippets.

@KOBA789
Created December 4, 2011 09:47
Show Gist options
  • Select an option

  • Save KOBA789/1429753 to your computer and use it in GitHub Desktop.

Select an option

Save KOBA789/1429753 to your computer and use it in GitHub Desktop.
var routes = require('./routes');
// 中略
app.get('/', routes.index);
app.get('/topics/', routes.topics.index);
app.get('/topics/:topic_id', routes.topics.show);
app.get('/topics/:topic_id/posts/:post_id', routes.topics.post.show);
exports.index = function () {
};
exports.create = function () {
};
exports.show = function () {
}
exports.topics = require('./topics');
exports.index = function () {
};
exports.create = function () {
};
exports.show = function () {
}
exports.index = function () {
};
exports.create = function () {
};
exports.show = function () {
}
exports.posts = require('./posts');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment