change port 4023 to 4024

This commit is contained in:
Kar k1
2025-08-30 18:28:24 +05:30
parent 7219108342
commit f29889df9a
12 changed files with 27 additions and 27 deletions

View File

@@ -4,7 +4,7 @@ This document describes the comprehensive API endpoints available in the Silicon
## Base URL
- Development: `http://localhost:4023`
- Development: `http://localhost:4024`
- Production: `https://siliconpin.com`
## Authentication
@@ -354,23 +354,23 @@ axios.interceptors.response.use(
```bash
# Register a new user
curl -X POST http://localhost:4023/api/auth/register \
curl -X POST http://localhost:4024/api/auth/register \
-H "Content-Type: application/json" \
-d '{"name":"Test User","email":"test@example.com","password":"password123"}' \
-c cookies.txt
# Login
curl -X POST http://localhost:4023/api/auth/login \
curl -X POST http://localhost:4024/api/auth/login \
-H "Content-Type: application/json" \
-d '{"email":"test@example.com","password":"password123"}' \
-c cookies.txt
# Get user profile (protected route)
curl -X GET http://localhost:4023/api/auth/me \
curl -X GET http://localhost:4024/api/auth/me \
-b cookies.txt
# Logout
curl -X POST http://localhost:4023/api/auth/logout \
curl -X POST http://localhost:4024/api/auth/logout \
-b cookies.txt
```