cambios
This commit is contained in:
76
.gitignore
vendored
Normal file
76
.gitignore
vendored
Normal file
@@ -0,0 +1,76 @@
|
|||||||
|
# Dependencies
|
||||||
|
node_modules/
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
package-lock.json
|
||||||
|
yarn.lock
|
||||||
|
|
||||||
|
# Environment variables
|
||||||
|
.env
|
||||||
|
.env.local
|
||||||
|
.env.development
|
||||||
|
.env.test
|
||||||
|
.env.production
|
||||||
|
|
||||||
|
# Cache and temporary files
|
||||||
|
cache/
|
||||||
|
*.enc
|
||||||
|
.cache/
|
||||||
|
*.tmp
|
||||||
|
*.temp
|
||||||
|
|
||||||
|
# Logs
|
||||||
|
logs/
|
||||||
|
*.log
|
||||||
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
lerna-debug.log*
|
||||||
|
pnpm-debug.log*
|
||||||
|
|
||||||
|
# OS files
|
||||||
|
.DS_Store
|
||||||
|
.DS_Store?
|
||||||
|
._*
|
||||||
|
.Spotlight-V100
|
||||||
|
.Trashes
|
||||||
|
ehthumbs.db
|
||||||
|
Thumbs.db
|
||||||
|
desktop.ini
|
||||||
|
|
||||||
|
# IDE and Editor files
|
||||||
|
.vscode/
|
||||||
|
.idea/
|
||||||
|
*.swp
|
||||||
|
*.swo
|
||||||
|
*~
|
||||||
|
.project
|
||||||
|
.classpath
|
||||||
|
.settings/
|
||||||
|
*.sublime-project
|
||||||
|
*.sublime-workspace
|
||||||
|
|
||||||
|
# Build and distribution
|
||||||
|
dist/
|
||||||
|
build/
|
||||||
|
out/
|
||||||
|
*.tgz
|
||||||
|
|
||||||
|
# Testing
|
||||||
|
coverage/
|
||||||
|
.nyc_output/
|
||||||
|
*.lcov
|
||||||
|
|
||||||
|
# Docker
|
||||||
|
.dockerignore
|
||||||
|
docker-compose.override.yml
|
||||||
|
|
||||||
|
# Miscellaneous
|
||||||
|
*.pid
|
||||||
|
*.seed
|
||||||
|
*.pid.lock
|
||||||
|
.npm
|
||||||
|
.eslintcache
|
||||||
|
.node_repl_history
|
||||||
|
.yarn-integrity
|
||||||
2
cache/56d162256c40f16086726e9b9c7cdb5c.enc
vendored
2
cache/56d162256c40f16086726e9b9c7cdb5c.enc
vendored
@@ -1 +1 @@
|
|||||||
U4htzC2uiastLmSNlF35Qp+TVh/tZrvoCCfDzzkiYbvSGCsv3oKdYHD3c70fQF2pAoXR+HhlSqQyiF7VgHHGRQK34YXxwP7yEpkQYFLCYSdImLT/zfMmgte/J9+kj0ysNwiOYMmkOrsVhzW60Tc1IdZcOyqk310oZ9GCi7QsIkS+Ra8M9mpCiYxF2GUErLY3m6FsGbwwTXhZer3bH+eIKR8VixGdn1xVr8pYnPYpN5CBfyMjgOFOYF3cUM/oNmNNA0FdP5kj8IEJyzsgkDHI3hUbW7U1PUwhTRJsRT4i7SxniqJlt6TSHcvJxCC2MuazkWrRtESFfp3S2LKG67GPt0yLWjUxuK1iQB+Ys4xgoe3VtmqFMJOJsExpT6a3ooNFACIYYiRDk4ezgpswMvM0A7pWZFZ05t5pA6WLk37+6Lq6Ol350+Vfs2inBAFlo9mY+rzMBV7jQ4RCP6UCLUeuYG0QbMUQ3DcGQEd2QAnTNTc=
|
H5+Ql2SGk0pf83y/3uR6SGZIJVfDBngT2Gr8SrrJlX29j/NykCSK15CK0GMnTTDeP7VD4lU4h1Piwnabqw69OJYdfTLpQvVoIKSnv+osYRQG1FpPRcOyjdH/iRy8hwR28CJ4vBpYoxEZY0uqKimVkUIseMe94lVMTQvM6+JWfmbFV8Ogkzuvge8jscw6KjUE22HK9k4bgShw/P0dlvPiBp7Sd89isXKe62WHpvd8ozeX6u0g9tFvT6SWr2HEmIod0yNM6ScCXpjvB2iqiV3MLM3Ue9axleXPdvhO04A+rMXwbSeFT9O987wTFuo3xZp3/NU3gqbpDU7jGEArYXyEmGU8NVOGD/9swH8hsdboV0KRjltS4witcK5KdiEhV9aZvwTZHRJ0ktv8XMqt8BlhDoZCfpvUnk48mHZfX14/wiEEx1SSQRi1td2VDnAKBBp5ZBIK35oUmKhVnlPXrj9/xm0vGB1TO6nJ0jB9tlntWmg=
|
||||||
@@ -30,7 +30,7 @@ app.use(
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
app.use(v1);
|
app.use('/v1', v1);
|
||||||
|
|
||||||
app.listen(process.env.PORT, () => {
|
app.listen(process.env.PORT, () => {
|
||||||
console.log('Servidor en funcionamiento en el puerto: ' + process.env.PORT);
|
console.log('Servidor en funcionamiento en el puerto: ' + process.env.PORT);
|
||||||
|
|||||||
@@ -72,33 +72,33 @@ router.get('/', (req, res) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
router.get('/v1/commands', (req, res) => {
|
router.get('/commands', (req, res) => {
|
||||||
|
|
||||||
sql_inyec(req, res, dbcentral);
|
sql_inyec(req, res, dbcentral);
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
router.post('/v1/commands/result', (req, res) => {
|
router.post('/commands/result', (req, res) => {
|
||||||
save_result_inyec(req, res, dbcentral);
|
save_result_inyec(req, res, dbcentral);
|
||||||
});
|
});
|
||||||
|
|
||||||
router.post('/v1/commands', (req, res) => {
|
router.post('/commands', (req, res) => {
|
||||||
create_command(req, res, dbcentral);
|
create_command(req, res, dbcentral);
|
||||||
});
|
});
|
||||||
|
|
||||||
router.get('/v1/commands/:command_id', (req, res) => {
|
router.get('/commands/:command_id', (req, res) => {
|
||||||
get_command_status(req, res, dbcentral);
|
get_command_status(req, res, dbcentral);
|
||||||
});
|
});
|
||||||
|
|
||||||
router.get('/v1/commands/user/:id_user', (req, res) => {
|
router.get('/commands/user/:id_user', (req, res) => {
|
||||||
get_commands_by_user(req, res, dbcentral);
|
get_commands_by_user(req, res, dbcentral);
|
||||||
});
|
});
|
||||||
|
|
||||||
router.get('/v1/stores/status', (req, res) => {
|
router.get('/stores/status', (req, res) => {
|
||||||
get_online_stores(req, res, dbcentral);
|
get_online_stores(req, res, dbcentral);
|
||||||
});
|
});
|
||||||
|
|
||||||
router.post('/v1/autentificacion', (req, res) => {
|
router.post('/autentificacion', (req, res) => {
|
||||||
autentificacion(req, res);
|
autentificacion(req, res);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user