Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 33 lines (30 sloc) 1.204 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
servers['Route'].augment({
    initialize: function(parent, app) {
        parent.call(this, app);
    },
    assets: {
        styles: new mirror([
            require.resolve('../assets/css/reset.css'),
            require.resolve('../assets/css/controls.css'),
            require.resolve('../assets/css/style.css')
        ], { type: '.css' }),
        scripts: new mirror([
            require.resolve('modestmaps/modestmaps.min.js'),
            require.resolve('wax/dist/wax.mm.min.js')
        ], { type: '.js'})
    },
    initializeAssets: function(parent, app) {
        parent.call(this, app);

        // Add our custom styles to the catchall file.
        this.assets.all.push(this.assets.scripts);

        this.get('/assets/tilestream/css/vendor.css', this.assets.styles.handler);
        this.get('/assets/tilestream/js/vendor.js', this.assets.scripts.handler);
    },
    initializeModels: function(parent, app) {
        this.models = app.models;
        _.bindAll(this, 'loadModel', 'getModel');
        this.get('/api/v1/:model/:id', [this.loadModel, this.getModel]);
        this.get('/api/v1/:collection', this.loadCollection.bind(this));
        parent.call(this, app);
    }
});
Something went wrong with that request. Please try again.