π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: tc
Nevo David6ca278a7227f
diff --git a/.env.example b/.env.exampleindex 87d6b9214..4211d67ca 100644--- a/.env.example+++ b/.env.example@@ -129,7 +129,7 @@ STRIPE_SECRET_KEY=""STRIPE_SIGNING_KEY=""STRIPE_SIGNING_KEY_CONNECT=""# RevenueCat (App Store / Google Play subscriptions from the mobile app)-# Webhook URL: {BACKEND_URL}/payment/revenuecat, Authorization header value = REVENUECAT_WEBHOOK_SECRET+# Webhook URLs: {BACKEND_URL}/payment/stripe and {BACKEND_URL}/payment/revenuecat, Authorization header value = REVENUECAT_WEBHOOK_SECRETREVENUECAT_SECRET_KEY=""REVENUECAT_WEBHOOK_SECRET=""# IN_APP_PURCHASE_REJECT_SANDBOX=truediff --git a/apps/backend/src/api/api.module.ts b/apps/backend/src/api/api.module.tsindex e98635042..54787f590 100644--- a/apps/backend/src/api/api.module.ts+++ b/apps/backend/src/api/api.module.ts@@ -3,7 +3,6 @@ import { AuthController } from '@gitroom/backend/api/routes/auth.controller';import { AuthService } from '@gitroom/backend/services/auth/auth.service';import { UsersController } from '@gitroom/backend/api/routes/users.controller';import { AuthMiddleware } from '@gitroom/backend/services/auth/auth.middleware';-import { StripeController } from '@gitroom/backend/api/routes/stripe.controller';import { StripeService } from '@gitroom/nestjs-libraries/services/stripe.service';import { PaymentController } from '@gitroom/backend/api/routes/payment.controller';import { PaymentService } from '@gitroom/nestjs-libraries/services/payment/payment.service';@@ -79,7 +78,6 @@ const authenticatedController = [? [RootController, OAuthController]: [RootController,- StripeController,PaymentController,AuthController,PublicController,diff --git a/apps/backend/src/api/routes/stripe.controller.ts b/apps/backend/src/api/routes/stripe.controller.tsdeleted file mode 100644index 699a0b3fe..000000000--- a/apps/backend/src/api/routes/stripe.controller.ts+++ /dev/null@@ -1,34 +0,0 @@-import {- Controller,- HttpException,- Post,- RawBodyRequest,- Req,-} from '@nestjs/common';-import { ApiTags } from '@nestjs/swagger';-import { PaymentService } from '@gitroom/nestjs-libraries/services/payment/payment.service';-import { STRIPE_PROVIDER } from '@gitroom/nestjs-libraries/services/payment/payment.providers';--// Legacy webhook path, kept until the Stripe dashboard points at /payment/stripe-@ApiTags('Stripe')-@Controller('/stripe')-export class StripeController {- constructor(private readonly _paymentService: PaymentService) {}-- @Post('/')- async stripe(@Req() req: RawBodyRequest<Request>) {- try {- return await this._paymentService.webhook(- STRIPE_PROVIDER,- req.rawBody,- // @ts-ignore- req.headers- );- } catch (e) {- if (e instanceof HttpException) {- throw e;- }- throw new HttpException(e, 500);- }- }-}