Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
welefen committed Jan 13, 2016
1 parent f28e669 commit a5a60a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions express/app.js
Expand Up @@ -3,6 +3,9 @@ var app = express();

app.get('/', function (req, res) {
res.send('Hello World')
});
app.get('/index/index', function (req, res) {
res.send('Hello World')
})
console.log('port', 3000)
app.listen(3000)
4 changes: 4 additions & 0 deletions koa/router/routers/index.js
Expand Up @@ -10,5 +10,9 @@ router.get('/', function *indexAction(next) {
this.body = 'hello world';
yield next;
});
router.get('/index/index', function *indexAction(next) {
this.body = 'hello world';
yield next;
});

app.use(router.routes());

0 comments on commit a5a60a8

Please sign in to comment.