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