static.js.router.js Maven / Gradle / Ivy
                 Go to download
                
        
                    Show more of this group  Show more artifacts with this name
Show all versions of gobblin-admin Show documentation
                Show all versions of gobblin-admin Show documentation
Gobblin Ingestion Framework
                
             The newest version!
        
        /* global Backbone */
/*eslint-disable no-new */
var app = app || {}
;(function () {
  var GobblinRouter = Backbone.Router.extend({
    routes: {
      '': 'index',
      'job/:name': 'job',
      'job-details/:id': 'jobDetails'
    },
    index: function () {
      new app.OverView()
    },
    job: function (name) {
      new app.JobView(name)
    },
    jobDetails: function (id) {
      new app.JobExecutionView(id)
    }
  })
  app.gobblinRouter = new GobblinRouter()
  Backbone.history.start()
})()
    © 2015 - 2025 Weber Informatics LLC | Privacy Policy