hmt 3 년 전
부모
커밋
cc1e9451b7
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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()