You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
224B

  1. import Armpits from "@sniff/armpits";
  2. export default function log(req, res, next) {
  3. Armpits.info(`${req.method} Request to ${req.path} with data:`, {
  4. code: req.body.code,
  5. target: req.body.target,
  6. });
  7. next();
  8. }