Spaces:
Runtime error
Runtime error
Download src/modules/auth/auth.module.ts from MuhammadNoman7600/qwen_2.5_model: direct link, hf CLI and curl.
- Browser
- Download file 884 Bytes
-
https://huggingface.co/spaces/MuhammadNoman7600/qwen_2.5_model/resolve/main/src/modules/auth/auth.module.ts
- Command line
-
hf download hf://spaces/MuhammadNoman7600/qwen_2.5_model/src/modules/auth/auth.module.ts
-
curl -L -o auth.module.ts https://huggingface.co/spaces/MuhammadNoman7600/qwen_2.5_model/resolve/main/src/modules/auth/auth.module.ts
884 Bytes
| import { Module, Global } from '@nestjs/common'; | |
| import { TypeOrmModule } from '@nestjs/typeorm'; | |
| import { APP_GUARD } from '@nestjs/core'; | |
| import { ApiKey } from './entities/api-key.entity'; | |
| import { AuthService } from './auth.service'; | |
| import { AuthController } from './auth.controller'; | |
| import { AuthValidateController } from './auth-validate.controller'; | |
| import { ApiKeyGuard } from './guards/api-key.guard'; | |
| import { ProxyAwareThrottlerGuard } from '../../common/security/proxy-aware-throttler.guard'; | |
| () | |
| ({ | |
| imports: [TypeOrmModule.forFeature([ApiKey], 'main')], | |
| controllers: [AuthController, AuthValidateController], | |
| providers: [ | |
| AuthService, | |
| { | |
| provide: APP_GUARD, | |
| useClass: ProxyAwareThrottlerGuard, | |
| }, | |
| { | |
| provide: APP_GUARD, | |
| useClass: ApiKeyGuard, | |
| }, | |
| ], | |
| exports: [AuthService], | |
| }) | |
| export class AuthModule {} | |