后端链接数据库
This commit is contained in:
9
server/app/controller/home.js
Normal file
9
server/app/controller/home.js
Normal file
@@ -0,0 +1,9 @@
|
||||
const Controller = require('egg').Controller;
|
||||
|
||||
class HomeController extends Controller {
|
||||
async index() {
|
||||
this.ctx.body = 'Hello world';
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = HomeController;
|
||||
Reference in New Issue
Block a user