mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat(licenses): enhance API and database integration for checkout sessions
- Updated development server port in package.json to 4002. - Introduced constants for website URLs based on environment. - Refactored database connection logic to use drizzle with PostgreSQL. - Added new API endpoint for creating checkout sessions with Stripe integration. - Implemented utility function to generate Stripe items based on license type and quantity. - Updated existing API routes to use a router for better organization.
This commit is contained in:
7
apps/licenses/src/validators/stripe.ts
Normal file
7
apps/licenses/src/validators/stripe.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { z } from "zod";
|
||||
|
||||
export const createCheckoutSessionSchema = z.object({
|
||||
type: z.enum(["basic", "premium", "business"]),
|
||||
serverQuantity: z.number().min(1),
|
||||
isAnnual: z.boolean(),
|
||||
});
|
||||
Reference in New Issue
Block a user