Prepare backend for production api path

This commit is contained in:
2026-04-06 22:07:03 -05:00
parent 1074c7c9d2
commit 9480b2ed9f
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -22,6 +22,8 @@ app.use(morgan(env.nodeEnv === 'production' ? 'combined' : 'dev'));
app.use(express.json());
app.use('/auth/login', authRateLimiter);
app.use('/api/auth/login', authRateLimiter);
app.use('/api', routes);
app.use(routes);
app.use(notFound);
app.use(errorHandler);
+4 -1
View File
@@ -1,9 +1,12 @@
const fs = require('fs/promises');
const path = require('path');
const env = require('../config/env');
const getUserCertificatePath = async (userId) => {
const fullPath = path.resolve(
'/home/mgonzalez/desarrollo/react/linkedsign/backend/storage/certificates/users',
env.storagePath,
'certificates',
'users',
String(userId)
);