aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/api-documentation/router.js
blob: 3ecaab590360b1f5e02ccf956a690aa5d0778ff1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import Backbone from 'backbone';

export default Backbone.Router.extend({
  routes: {
    '*path': 'show'
  },

  initialize: function (options) {
    this.app = options.app;
  },

  show: function (path) {
    this.app.controller.show(path);
  }
});