Files
core/src/modules/pty/pty.controller.ts
2022-06-11 11:59:47 +08:00

19 lines
441 B
TypeScript

import { Controller, Get } from '@nestjs/common'
import { Auth } from '~/common/decorator/auth.decorator'
import { ApiName } from '~/common/decorator/openapi.decorator'
import { PTYService } from './pty.service'
@ApiName
@Auth()
@Controller({ path: 'pty' })
export class PTYController {
constructor(private readonly service: PTYService) {}
@Get('/record')
async getPtyLoginRecord() {
return this.service.getLoginRecord()
}
}