15 lines
321 B
JavaScript
15 lines
321 B
JavaScript
var Router = require('./router'),
|
|
Backbone = require('backbone');
|
|
|
|
var App = function() {
|
|
this.bootstrap = function() {
|
|
// here goes all app initialization and bootstraping logic
|
|
this.router = new Router();
|
|
Backbone.history.start();
|
|
};
|
|
};
|
|
|
|
|
|
var app = new App();
|
|
module.exports = app;
|