We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 82e17c0 commit b98481aCopy full SHA for b98481a
1 file changed
src/app.js
@@ -19,14 +19,21 @@ app.set("trust proxy", true)
19
20
app.use((req, res, next) => {
21
log.logger.info(`${req.method} ${req.path} ${req.query}`)
22
+ next()
23
})
24
25
const auth = require("./auth")
26
const wol = require("./wol")
27
28
app.use("/", auth)
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
+})
37
38
app.use((err, req, res, next) => {
39
log.logger.error(err.message)
0 commit comments