Más actualización de dependencias

This commit is contained in:
2025-08-18 19:14:00 +00:00
parent d8cc6e9613
commit 1b7e4f36e9
11 changed files with 17 additions and 1861 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "suitecoffee_aplication_service",
"name": "aplication",
"version": "1.0.0",
"main": "index.js",
"main": "src/index.js",
"scripts": {
"start": "NODE_ENV=production node ./src/index.js",
"dev": "NODE_ENV=development npx nodemon ./src/index.js",
+5 -5
View File
@@ -1,11 +1,11 @@
{
"name": "auth",
"name": "authentication",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "auth",
"name": "authentication",
"version": "1.0.0",
"license": "ISC",
"dependencies": {
@@ -239,9 +239,9 @@
}
},
"node_modules/chalk": {
"version": "5.5.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.5.0.tgz",
"integrity": "sha512-1tm8DTaJhPBG3bIkVeZt1iZM9GfSX2lzOeDVZH9R9ffRHpmHvxZ/QhgQH/aDTkswQVt+YHdXAdS/In/30OjCbg==",
"version": "5.6.0",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-5.6.0.tgz",
"integrity": "sha512-46QrSQFyVSEyYAgQ22hQ+zDa60YHA4fBstHmtSApj1Y5vKtG27fWowW03jCk5KcbXEWPZUIR894aARCA/G1kfQ==",
"license": "MIT",
"engines": {
"node": "^12.17.0 || ^14.13 || >=16.0.0"
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "suitecoffee_authentication_service",
"name": "authentication",
"version": "1.0.0",
"main": "index.js",
"main": "src/index.js",
"scripts": {
"start": "NODE_ENV=production node ./src/index.js",
"dev": "NODE_ENV=development npx nodemon ./src/index.js",
+6 -6
View File
@@ -66,7 +66,12 @@ async function verificarConexion() {
// === Servir páginas estáticas ===
app.use('/auth', express.static(path.join(__dirname, 'pages')));
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) => {
try {
@@ -83,11 +88,6 @@ app.get('/planes', async (req, res) => {
}
});
// Ruta raíz
app.get('/', (req, res) => {
res.sendFile(path.join(__dirname, 'pages', 'index.html'));
});
app.post('/api/registro', async (req, res) => {
const {
nombre_empresa,
-1
View File
@@ -53,7 +53,6 @@
<div class="text-center mt-3">
<button class="btn btn-link btn-sm" id="toggle-mode">¿No tienes cuenta? Regístrate</button>
</div>
<p>Hola!</p>
</div>
<script>