mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-03-10 22:01:43 +00:00
17 lines
473 B
TypeScript
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();
|
|
}
|
|
}
|