change port 4023 to 4024
This commit is contained in:
10
docs/API.md
10
docs/API.md
@@ -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
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user