fixing logbook non authenticated (#53)

This commit was merged in pull request #53.
This commit is contained in:
2025-02-24 18:55:49 +00:00
committed by GitHub
parent c765b06404
commit 07575302cc
4 changed files with 91 additions and 62 deletions

View File

@@ -20,6 +20,7 @@ import { Public } from '@noahspan/noahspan-modules';
export class LogController {
constructor(private readonly logService: LogService) {}
@Public()
@Get(':partitionKey/:rowKey')
async find(
@Param('partitionKey') partitionKey: string,

View File

@@ -9,6 +9,7 @@ async function bootstrap() {
const httpService = new HttpService();
const app = await NestFactory.create(AppModule);
app.enableCors();
app.setGlobalPrefix('api');
app.useGlobalFilters(new HttpExceptionFilter());