Files
backend/apps/auth/src/modules/authentication/controllers/authentication.controller.ts
2024-02-26 11:23:44 +05:30

17 lines
473 B
TypeScript

import { Controller, Post } from '@nestjs/common';
import { AuthenticationService } from '../services/authentication.service';
import { ApiTags } from '@nestjs/swagger';
@Controller({
version: '1',
path: 'authentication',
})
@ApiTags('Tuya Auth')
export class AuthenticationController {
constructor(private readonly authenticationService: AuthenticationService) {}
@Post('auth')
async Authentication() {
return await this.authenticationService.main();
}
}