Sha256: afa56324d12fb82d49923b99b2fd713eb43dce032f7ba070a3552c15a88eec77

Contents?: true

Size: 1.09 KB

Versions: 1

Compression:

Stored size: 1.09 KB

Contents

#= require app

# App Module
requires = [
  "bootstrap", "ngSanitize",
  "mb.controllers", "mb.directives", "mb.filters",
  "mb.dialogs", "mb.pager", "mb.tableFilter"]

angular.module("mb", requires)
  .config [
    "$routeProvider", "$locationProvider", (route, location) ->
      route
        # Main page, list of all available databases
        .when "/",
            templateUrl: "/ng/templates/databases.html",
            controller: "databases"

        # List of collections for the given database
        .when "/databases/:dbName/collections",
            templateUrl: "/ng/templates/collections.html",
            controller: "collections"

        # list of documents for the given collection
        .when "/databases/:dbName/collections/:collectionName/documents",
            templateUrl: "/ng/templates/documents.html",
            controller: "documents"

        # Information about the server
        .when "/server_info",
            templateUrl: "/ng/templates/server_info.html",
            controller: "serverInfo"

        .otherwise(redirectTo: "/")

      location.html5Mode(true)
  ]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongo_browser-0.2.0.rc2 app/assets/javascripts/application.js.coffee