12345678910111213 |
- 'use strict';
- const Controller = require('egg').Controller;
- class HomeController extends Controller {
- async index() {
- const { ctx , app} = this;
- console.log( ctx.request.URL );
- ctx.resultOK( 'hi, training app ' + ctx.request.URL );
- }
- }
- module.exports = HomeController;
|