Skip to content

Commit

Permalink
simplify usage
Browse files Browse the repository at this point in the history
  • Loading branch information
timfish committed Oct 29, 2024
1 parent 379063f commit 70e9ad8
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ import express from 'express';

const app = express();

app.use(express.json({ type: 'application/reports+json' }));

app.post('/reporting-api', async (req, res) => {
app.post('/reporting-api', express.json({ type: 'application/reports+json' }), async (req, res) => {
await captureReportingApi(req.body);
res.sendStatus(200);
});
Expand Down

0 comments on commit 70e9ad8

Please sign in to comment.