Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Diego F. Ticona Ramos
cliente-qa-ppe
Commits
6e5e4829
Commit
6e5e4829
authored
Oct 01, 2021
by
Diego F. Ticona Ramos
Browse files
corrigiendo packages no usados
parent
2def8773
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/src/server.ts
View file @
6e5e4829
...
...
@@ -5,8 +5,8 @@ import {
// FIREBASE_ADMIN_SDK,
SERVER
}
from
"
./config/app.config
"
;
import
adminFirebase
,
{
ServiceAccount
}
from
"
firebase-admin
"
;
import
fileUpload
from
"
express-fileupload
"
;
//
import adminFirebase, { ServiceAccount } from "firebase-admin";
//
import fileUpload from "express-fileupload";
import
{
SQLConnection
}
from
"
./core/base/SQLConnection
"
;
import
path
from
"
path
"
;
import
printRoutes
from
"
./tools/printRoutes
"
;
...
...
@@ -60,11 +60,11 @@ import morgan from "morgan";
app
.
use
(
cors
(
options
));
// Definiendo CORS para peticiones en clientes externos
app
.
use
(
express
.
json
({
limit
:
'
500mb
'
}));
app
.
use
(
fileUpload
({
limits
:
{
fileSize
:
50
*
1024
*
1024
},
})
);
//
app.use(
//
fileUpload({
//
limits: { fileSize: 50 * 1024 * 1024 },
//
})
//
);
// podemos testear localmente si el build generado del cliente web funciona
app
.
use
(
express
.
static
(
path
.
join
(
__dirname
,
"
../../public/
"
)));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment