...
|
...
|
@@ -6,12 +6,12 @@ let r = new Router(); |
|
|
|
|
|
const index = {
|
|
|
index: async(ctx, next) => {
|
|
|
console.log('index');
|
|
|
|
|
|
await ctx.render('index');
|
|
|
ctx.redirect('/projects');
|
|
|
},
|
|
|
};
|
|
|
|
|
|
r.get('/index', index.index);
|
|
|
|
|
|
r.get('/', index.index);
|
|
|
r.get('/index', (ctx, next) => {
|
|
|
ctx.body = 'Todo';
|
|
|
});
|
|
|
export default r; |
|
|
\ No newline at end of file |
...
|
...
|
|