mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
fix: internal payment controller
This commit is contained in:
@@ -19,6 +19,7 @@ import {
|
||||
import { PaymentService } from "./payment.service";
|
||||
import { BillingService } from "../billing/billing.service";
|
||||
import { ServiceAuthGuard } from "../../common/guards/service-auth.guard";
|
||||
import { Public } from "@edr/api-common";
|
||||
|
||||
/**
|
||||
* Consumer side of the payment microservice's outbox relay. Only the payment service may
|
||||
@@ -28,6 +29,9 @@ import { ServiceAuthGuard } from "../../common/guards/service-auth.guard";
|
||||
* this HTTP endpoint remains as a transport-agnostic fallback.
|
||||
*/
|
||||
@ApiTags("Internal Payments")
|
||||
// Skips the global JwtGuard (no end-user JWT on a service-to-service call);
|
||||
// ServiceAuthGuard below still enforces the shared SERVICE_AUTH_TOKEN.
|
||||
@Public()
|
||||
@UseGuards(ServiceAuthGuard)
|
||||
@Controller("internal/payments")
|
||||
export class InternalPaymentController {
|
||||
|
||||
Reference in New Issue
Block a user