   )
   return
 
-app.get "/match/home/sub", (req, res) ->
+app.get "/:token/match/home/sub", (req, res) ->
+  auth req
   add = table.child('current_games')
   add.once('value', (nameSnapshot) ->
     game = nameSnapshot.val()

    )
  )
  return

app.get "/match/home", (req, res) ->
  home = table.child('current_games')
  home.once('value', (nameSnapshot) ->
    game = nameSnapshot.val()

    )
  )
  return
app.get "/:token/match/away/add", (req, res) ->
  auth req
  awayAdd = table.child('current_games')
  awayAdd.once('value', (nameSnapshot) ->
    game = nameSnapshot.val()
