fix: server di error
This commit is contained in:
1 parent
bc775d4fd6
commit
098cbe3eb9
6 files changed
+1328
-13
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { Controller, Get, Post, Body, Res, HttpStatus, UseGuards } from '@nestjs/common';
|
||||
import { Controller, Get, Post, Body, Res, HttpStatus, UseGuards, Inject } from '@nestjs/common';
|
||||
import { FastifyReply } from 'fastify';
|
||||
import { ProxyService } from './proxy.service';
|
||||
import { Observable } from 'rxjs';
|
||||
@@ -8,7 +8,7 @@ import { ProxyGuard } from './proxy.guard';
|
||||
@Controller('v1')
|
||||
@UseGuards(ProxyGuard)
|
||||
export class ProxyController {
|
||||
constructor(private readonly proxyService: ProxyService) {}
|
||||
constructor(@Inject(ProxyService) private readonly proxyService: ProxyService) {}
|
||||
|
||||
@Get('models')
|
||||
getModels() {
|
||||
|
||||
Reference in new issue
Block a user