2020-08-24 21:20:58 +02:00
|
|
|
/*
|
|
|
|
* Copyright (C) Sapphirecode - All Rights Reserved
|
|
|
|
* This file is part of appreports which is released under GPL-3.0-or-later.
|
|
|
|
* See file 'LICENSE' for full license details.
|
|
|
|
* Created by Timo Hocker <timo@scode.ovh>, August 2020
|
|
|
|
*/
|
|
|
|
|
2020-08-23 13:08:04 +02:00
|
|
|
/* eslint-disable no-console */
|
|
|
|
'use strict';
|
|
|
|
|
|
|
|
module.exports = (req, res, next) => {
|
|
|
|
console.log (req.method, req.originalUrl);
|
|
|
|
console.log (JSON.stringify (req.headers));
|
|
|
|
console.log ('');
|
|
|
|
console.log (JSON.stringify (req.body, null, 2));
|
|
|
|
next ();
|
|
|
|
};
|