/*
 * @Author: YKH
 * @Date: 2021-12-08 10:26:26
 * @LastEditTime: 2022-09-29 13:50:50
 * @Description:
 * @FilePath: \cool-admin\cool-admin-midway-master\src\welcome.ts
 */
import { Get, Inject, Provide } from '@midwayjs/decorator';
import { Context } from 'egg';
import { CoolController, BaseController } from 'midwayjs-cool-core';

/**
 * 欢迎界面
 */
@Provide()
@CoolController('/')
export class WelcomeController extends BaseController {
  @Inject()
  ctx: Context;

  @Get('/')
  public async welcome() {
    await this.ctx.render('welcome', { text: 'HELLO COOL-ADMIN 3.5.2' });
  }
}
