mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-25 01:06:54 +00:00
log headers
This commit is contained in:
1 parent
db9212bd12
commit
1b20c00842
1 file changed
+1
-1
@@ -2,7 +2,7 @@ import packageJSON from '../../package.json' with { type: "json" };
|
||||
const version = packageJSON.version;
|
||||
|
||||
export default (req, res, next)=>{
|
||||
console.log(req);
|
||||
console.log(req.headers);
|
||||
//check if req comes from localhost
|
||||
|
||||
const userVersion = req.get('Homebrewery-Version');
|
||||
|
||||
Reference in new issue
Block a user