blog-server/controllers/login.js
2019-10-28 08:23:00 +08:00

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
};