UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

BULL-3221: express mvp

Merged Douglas Lagemann requested to merge BULL-3221_express_mvp into main
8 files
+ 5239
16
Compare changes
  • Side-by-side
  • Inline
Files
8
@@ -34,7 +34,7 @@ exports.getUser = async (req, res) => {
try {
const header = req.headersDistinct?.Authorization?.[0] || req.headersDistinct?.authorization?.[0];
const responseData = header ? jwtDecode(header) : { result: "no authorization header found" };
res.json(responseData);
res.status(200).json(responseData);
} catch (error) {
const errorResponse = {
error: 'Unable to read authorization header as jwt! Error: ' + error.message
@@ -52,5 +52,5 @@ exports.getVersion = async (req, res) => {
apiVersion: apiVersion,
dbVersion: dbVersion
};
res.json(versionResponse);
res.status(200).json(versionResponse);
};
Loading