11 lines
222 B
JavaScript
11 lines
222 B
JavaScript
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
|
|
};
|