2026-03-07 11:25:11 +03:30
|
|
|
import { Controller, Get } from '@nestjs/common'
|
|
|
|
|
import { TranslateService } from './translate.service'
|
2026-04-27 10:45:39 +03:30
|
|
|
import type { TranslateServiceGetTranslationsResponseDto } from './dto/translate-response.dto'
|
2026-03-07 11:25:11 +03:30
|
|
|
|
|
|
|
|
@Controller('admin/translates')
|
|
|
|
|
export class TranslateController {
|
|
|
|
|
constructor(private readonly translateService: TranslateService) {}
|
|
|
|
|
|
|
|
|
|
@Get()
|
2026-04-27 10:45:39 +03:30
|
|
|
async getTranslations(): Promise<TranslateServiceGetTranslationsResponseDto> {
|
2026-03-07 11:25:11 +03:30
|
|
|
return this.translateService.getTranslations()
|
|
|
|
|
}
|
|
|
|
|
}
|