| import { Controller, Get } from "@nestjs/common"; | |
| import { ContributorsService } from "./contributors.service"; | |
| ("contributors") | |
| export class ContributorsController { | |
| constructor(private readonly contributorsService: ContributorsService) {} | |
| ("/github") | |
| async githubContributors() { | |
| return this.contributorsService.fetchGitHubContributors(); | |
| } | |
| ("/crowdin") | |
| async crowdinContributors() { | |
| return this.contributorsService.fetchCrowdinContributors(); | |
| } | |
| } | |