File size: 353 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { Controller, Get } from "@nestjs/common";

import { TranslationService } from "./translation.service";

@Controller("translation")
export class TranslationController {
  constructor(private readonly translationService: TranslationService) {}

  @Get("/languages")
  async languages() {
    return this.translationService.fetchLanguages();
  }
}