Feature/api paramyxrx #25
1 changed files with 2 additions and 0 deletions
|
|
@ -1,4 +1,6 @@
|
|||
export const validateMedicationApiKey = (req, res, next) => {
|
||||
console.log('req: ', req);
|
||||
console.log('req.headers: ', req.headers);
|
||||
const authHeader = req.headers['authorization'];
|
||||
const token = authHeader && authHeader.split(' ')[1];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue