diff --git a/docker-compose.override.yml b/docker-compose.override.yml index 2d07244..f8fbab4 100644 --- a/docker-compose.override.yml +++ b/docker-compose.override.yml @@ -64,7 +64,7 @@ services: working_dir: /app user: "${UID:-1000}:${GID:-1000}" volumes: - - ./services/app:/app:rw + - ./services/auth:/app:rw - ./node_modules:/app/node_modules env_file: - ./services/auth/.env.development diff --git a/services/app/src/index.js b/services/app/src/index.js index 35e0db6..bb6489f 100644 --- a/services/app/src/index.js +++ b/services/app/src/index.js @@ -66,6 +66,8 @@ async function verificarConexion() { // === Servir páginas estáticas === app.use(express.static(path.join(__dirname, 'pages'))); +app.get('/',(req, res) => res.sendFile(path.join(__dirname, 'pages', 'index.html'))); + app.get('/roles', (req, res) => res.sendFile(path.join(__dirname, 'pages', 'roles.html'))); app.get('/usuarios', (req, res) => res.sendFile(path.join(__dirname, 'pages', 'usuarios.html'))); app.get('/categorias',(req, res) => res.sendFile(path.join(__dirname, 'pages', 'categorias.html'))); diff --git a/services/auth/src/pages/index.html b/services/app/src/pages/index.html similarity index 100% rename from services/auth/src/pages/index.html rename to services/app/src/pages/index.html diff --git a/services/auth/src/index.js b/services/auth/src/index.js index f9e4b9b..b4f1759 100644 --- a/services/auth/src/index.js +++ b/services/auth/src/index.js @@ -70,7 +70,6 @@ app.set('trust proxy', true); app.use(express.static(path.join(__dirname, 'pages'))); -app.get('/',(req, res) => res.sendFile(path.join(__dirname, 'pages', 'index.html'))); app.get('/planes', async (req, res) => {