home.js 299 B

12345678910111213
  1. 'use strict';
  2. const Controller = require('egg').Controller;
  3. class HomeController extends Controller {
  4. async index() {
  5. const { ctx , app} = this;
  6. console.log( ctx.request.URL );
  7. ctx.resultOK( 'hi, training app ' + ctx.request.URL );
  8. }
  9. }
  10. module.exports = HomeController;