Inicio de proyecto

This commit is contained in:
Andres2908
2022-01-18 23:32:39 -06:00
commit 3fde0c0926
19 changed files with 5037 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
const express = require('express');
const app = express();
const { verificaToken } = require('../middleware/autentificacion');
const route = '/usuario';
// const controllerPath = '../controller/Usuario';
// const login = require(`${controllerPath}/login`);
// app.post(`${route}/login`, (req, res) => {
// return login(req.body)
// .then((data) => {
// res.status(200).json(data);
// })
// .catch((err) => {
// res.status(400).json({ message: err.message });
// });
// });
module.exports = app;
+6
View File
@@ -0,0 +1,6 @@
const express = require("express");
const app = express();
// app.use(require("./"));
module.exports = app;