Removed unused comments.
This commit is contained in:
@@ -17,9 +17,6 @@ app.use(bodyParser.json());
|
|||||||
// router.use(bodyParser.urlencoded({ extended: true }));
|
// router.use(bodyParser.urlencoded({ extended: true }));
|
||||||
|
|
||||||
|
|
||||||
/* Decode the Authorization header if provided */
|
|
||||||
// router.use(tokenToUser);
|
|
||||||
|
|
||||||
const router = express.Router();
|
const router = express.Router();
|
||||||
const allowedOrigins = ['https://kevinmidboe.com', 'http://localhost:8080'];
|
const allowedOrigins = ['https://kevinmidboe.com', 'http://localhost:8080'];
|
||||||
|
|
||||||
@@ -27,9 +24,7 @@ const allowedOrigins = ['https://kevinmidboe.com', 'http://localhost:8080'];
|
|||||||
// router.use(bodyParser.json());
|
// router.use(bodyParser.json());
|
||||||
app.use(bodyParser.urlencoded({ extended: true }));
|
app.use(bodyParser.urlencoded({ extended: true }));
|
||||||
|
|
||||||
|
/* Decode the Authorization header if provided */
|
||||||
// This is probably a correct middleware/router setup
|
|
||||||
/* Translate the user token to a user name */
|
|
||||||
router.use(tokenToUser);
|
router.use(tokenToUser);
|
||||||
|
|
||||||
// TODO: Should have a separate middleware/router for handling headers.
|
// TODO: Should have a separate middleware/router for handling headers.
|
||||||
|
|||||||
Reference in New Issue
Block a user