Files
stack-mos-dt-0/apps/gateway/src/agent/providers.controller.ts
T
2026-03-13 03:10:51 +00:00

20 lines
494 B
TypeScript

import { Controller, Get, UseGuards } from '@nestjs/common';
import { AuthGuard } from '../auth/auth.guard.js';
import { ProviderService } from './provider.service.js';
@Controller('api/providers')
@UseGuards(AuthGuard)
export class ProvidersController {
constructor(private readonly providerService: ProviderService) {}
@Get()
list() {
return this.providerService.listProviders();
}
@Get('models')
listModels() {
return this.providerService.listAvailableModels();
}
}