another auth checkpoint

webhook issue resolved
This commit is contained in:
dimitar committed 2026-02-04 22:36:28 +01:00
1 parent cb2355adcd
commit 3718882f5b
8 files changed
+388 -10

No files matched your search

+4
View File
@@ -1,5 +1,6 @@
import { Controller, Post, Body, Logger } from '@nestjs/common';
import { StrapiService } from './strapi.service';
import { Public } from './auth/public.decorator';
interface WebhookBody {
event:
@@ -21,6 +22,7 @@ export class StrapiController {
constructor(private readonly strapiService: StrapiService) {}
@Post('article')
@Public()
async handleArticleWebhook(@Body() body: WebhookBody) {
this.logger.log(`Received article webhook: ${JSON.stringify(body)}`);
const { event, model, entry } = body;
@@ -38,6 +40,7 @@ export class StrapiController {
}
@Post('live-blog')
@Public()
async handleLiveBlogWebhook(@Body() body: WebhookBody) {
this.logger.log(`Received live-blog webhook: ${JSON.stringify(body)}`);
const { event, model, entry } = body;
@@ -55,6 +58,7 @@ export class StrapiController {
}
@Post()
@Public()
async handleGenericWebhook(@Body() body: unknown) {
this.logger.log(`Received generic webhook: ${JSON.stringify(body)}`);