hmt vor 3 Jahren
Ursprung
Commit
cc1e9451b7
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      app.ts

+ 2 - 2
app.ts

@@ -14,10 +14,10 @@ router.use((req, res, next)=> {
   next()
 });
 // check authentication via checksum
-router.use(":call", (req, res, next) => {
+router.use("/:call", (req, res, next) => {
   const handler = new BBB(req)
   const authenticated = handler.authenticated(secret)
-  console.log(`${date()} New call to ${Color.green(handler.call)} ${authenticated ? Color.red('Rejected'):''}`)
+  console.log(`${date()} New call to ${Color.green(handler.call)} ${authenticated ? '':Color.red('Rejected')}`)
   if (authenticated) { 
     res.locals.handler = handler
     next()