Fix production web API routing
This commit is contained in:
+7
-7
@@ -33,8 +33,8 @@ Variables importantes:
|
||||
|
||||
```env
|
||||
PORT=4000
|
||||
CORS_ORIGIN=http://192.168.222.72:5173
|
||||
FRONTEND_URL=http://192.168.222.72:5173
|
||||
CORS_ORIGIN=http://192.168.222.40:5173
|
||||
FRONTEND_URL=http://192.168.222.40:5173
|
||||
MAIL_HOST=
|
||||
MAIL_PORT=587
|
||||
MAIL_SECURE=false
|
||||
@@ -73,7 +73,7 @@ DB_NAME=
|
||||
Registra usuario y envía correo de validación.
|
||||
|
||||
```bash
|
||||
curl -X POST http://192.168.222.72:4000/auth/register \
|
||||
curl -X POST http://192.168.222.40:4000/auth/register \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"email": "usuario@correo.com",
|
||||
@@ -86,7 +86,7 @@ curl -X POST http://192.168.222.72:4000/auth/register \
|
||||
Inicia sesión. Si el correo no está validado, reenvía el enlace.
|
||||
|
||||
```bash
|
||||
curl -X POST http://192.168.222.72:4000/auth/login \
|
||||
curl -X POST http://192.168.222.40:4000/auth/login \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
"email": "usuario@correo.com",
|
||||
@@ -117,7 +117,7 @@ Devuelve usuario autenticado y preferencias visuales de firma.
|
||||
Sube un PDF original.
|
||||
|
||||
```bash
|
||||
curl -X POST http://192.168.222.72:4000/documents \
|
||||
curl -X POST http://192.168.222.40:4000/documents \
|
||||
-H "Authorization: Bearer TU_ACCESS_TOKEN" \
|
||||
-F "file=@/ruta/documento.pdf"
|
||||
```
|
||||
@@ -137,7 +137,7 @@ Descarga un documento original.
|
||||
Sube un certificado `.p12` o `.pfx`.
|
||||
|
||||
```bash
|
||||
curl -X POST http://192.168.222.72:4000/certificates \
|
||||
curl -X POST http://192.168.222.40:4000/certificates \
|
||||
-H "Authorization: Bearer TU_ACCESS_TOKEN" \
|
||||
-F "file=@/ruta/certificado.p12" \
|
||||
-F "alias=MPGH 2026" \
|
||||
@@ -155,7 +155,7 @@ Lista certificados del usuario, incluyendo datos de cadena embebida.
|
||||
Firma un documento con un certificado del usuario.
|
||||
|
||||
```bash
|
||||
curl -X POST http://192.168.222.72:4000/signatures/sign \
|
||||
curl -X POST http://192.168.222.40:4000/signatures/sign \
|
||||
-H "Authorization: Bearer TU_ACCESS_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "linkedsign-backend",
|
||||
"version": "1.2.2",
|
||||
"version": "1.2.3",
|
||||
"private": true,
|
||||
"description": "Initial backend for LinkedSign",
|
||||
"main": "src/server.js",
|
||||
|
||||
Reference in New Issue
Block a user