API endpoints
Here's an overview of the available API endpoints to manage various aspects of your SaaS application:
Auth Routes (Authentication)
POST /auth/signIn
: Login with email/passwordPOST /auth/signup
: Create a new user account 🆕POST /auth/exist
: Check if an email address already existsPUT /auth/password
: Update user's passwordPOST /auth/password-reset
: Send password reset linkPOST /auth/google
: Authenticate with GoogleGET /auth/magic-link
: Send a magic link for login via email 🪄GET /auth/callback/magic-link
: Verify a magic link
Blog Post Routes (Blog management)
GET /blogposts/
: Get all blog postsGET /blogposts/:id
: Get a specific blog postGET /blogposts/:slug/slug
: Get a blog post by slugGET /blogposts/:slug/latests
: Get latest blog posts (ignoring slug) 🆕POST /blogposts/
: Create a new blog postPUT /blogposts/:id
: Update a blog post ✏️DELETE /blogposts/:id
: Delete a blog post ️
File Uploads Routes (Image uploads)
POST /file-uploads/image
: Upload an image ️GET /file-uploads/:id/image
: Get an uploaded image ️
Payment Routes (STRIPE integration)
POST /payments/webhook
: Handle Stripe webhooks (for automatic subscription management)
Plan Routes (Subscription plans)
GET /plans/all
: Get all available subscription or payment plansGET /plans/:id
: Get a specific planPOST /plans/change
: Update a user's subscription or payment planPOST /plans/
: Create a new subscription or payment plan ➕PUT /plans/:id
: Update a subscription or payment plan ✏️DELETE /plans/:id
: delete a subscription or payment plan
Last updated