Skip to content

Commit b98481a

Browse files
committed
test
1 parent 82e17c0 commit b98481a

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

src/app.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,21 @@ app.set("trust proxy", true)
1919

2020
app.use((req, res, next) => {
2121
log.logger.info(`${req.method} ${req.path} ${req.query}`)
22+
next()
2223
})
2324

2425
const auth = require("./auth")
2526
const wol = require("./wol")
2627

2728
app.use("/", auth)
2829

29-
app.get("/data", wol)
30+
app.get("/data", async (req, res, next) => {
31+
try {
32+
await startProcessing(req, res)
33+
} catch (err) {
34+
next(err)
35+
}
36+
})
3037

3138
app.use((err, req, res, next) => {
3239
log.logger.error(err.message)

0 commit comments

Comments
 (0)