初始化
This commit is contained in:
10
controllers/login.js
Normal file
10
controllers/login.js
Normal file
@@ -0,0 +1,10 @@
|
||||
var login = async (ctx, next) => {
|
||||
// var name = ctx.params.name;
|
||||
// ctx.response.body = `<h1>Hello, ${name}!</h1>`;
|
||||
ctx.response.body="这是login"
|
||||
next()
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
'GET /login': login
|
||||
};
|
||||
Reference in New Issue
Block a user