     Session.set('document_id', document_id)
     return 'document_view'
 
-  '*': '404'
-
 Meteor.Router.filters
   'isAdmin': (page) -> if Meteor.user()?.profile.admin then page else 'admin_login'
 

  inspector_name = "inspector_#{collection_name}"

  unless window[inspector_name]
    window[inspector_name] = new Meteor.Collection(collection_name)
  Meteor.subscribe subscription_name
  Session.set("collection_name", collection_name)
  return window[inspector_name]

  collections: -> Session.get("collections")

Meteor.Router.add
  '/admin': ->
    Session.set "collections", Collections.find().fetch()
    return 'db_view'

  '/admin/login': 'admin_login'

  '/admin/:collection': (collection_name) ->
    collection = setup_collection collection_name
