<commit_before>router = routers['Core'];

router.augment({
    initializeAssets: function(parent, app) {
        this.server.get('/assets/tilestream/css/vendor.css', mirror.assets(require, [
            '../assets/css/reset.css',
            '../assets/css/controls.css',
            '../assets/css/style.css'
        ], {headers:{'Content-Type': 'text/css'}}));

        this.server.get('/assets/tilestream/js/vendor.js', mirror.assets(require, [
            'openlayers_slim/OpenLayers.js',
            'wax/build/wax.ol.min.js'
        ]));

        // @TODO.
        // server.get('/theme/default/style.css', mirror.file('openlayers_slim/theme/default/style.css'));

        // @TODO.
        // server.get('/api/v1/:model', validateCollection, getCollection);
        // server.all('/api/v1/:model/*', validateModel, getModel);

        return parent.call(this, app);
    }
});<commit_msg>Implement v1 api endpoints.<commit_after>router = routers['Core'];

router.augment({
    initializeAssets: function(parent, app) {
        this.server.get('/assets/tilestream/css/vendor.css', mirror.assets(require, [
            '../assets/css/reset.css',
            '../assets/css/controls.css',
            '../assets/css/style.css'
        ], {headers:{'Content-Type': 'text/css'}}));

        this.server.get('/assets/tilestream/js/vendor.js', mirror.assets(require, [
            'openlayers_slim/OpenLayers.js',
            'wax/build/wax.ol.min.js'
        ]));

        // @TODO.
        // server.get('/theme/default/style.css', mirror.file('openlayers_slim/theme/default/style.css'));
    },
    initializeModels: function(parent, app) {
        parent.call(this, app);
        this.server.get('/api/v1/:model/:id', this.loadModel, this.getModel);
    },
    initializeCollections: function(parent, app) {
        parent.call(this, app);
        this.server.get('/api/v1/:collection', this.loadCollection.bind(this));ad

    }
});
{'fraction_non_alphanumeric': 0.19069767441860466, 'fraction_numerical': 0.002583979328165375, 'mean_word_length': 2.408450704225352, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7105788', 'n_tokens_mistral': 618, 'n_tokens_neox': 617, 'n_words': 68}