Created
December 4, 2011 09:47
-
-
Save KOBA789/1429753 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| exports.index = function () { | |
| }; | |
| exports.create = function () { | |
| }; | |
| exports.show = function () { | |
| } | |
| exports.topics = require('./topics'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| exports.index = function () { | |
| }; | |
| exports.create = function () { | |
| }; | |
| exports.show = function () { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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