blog-server/controllers/login.js

11 lines
222 B
JavaScript
Raw Normal View History

2019-10-28 08:21:03 +08:00
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
};