<commit_before>var fs = require('fs');

module.exports = function (app, config) {
    app.get('/schema/models/:model', config.middleware, function (req, res, next) {
        res.status(200).sendfile("schema/models/" + req.params.model + ".json");
    });
}<commit_msg>added additional schema service methods for rel and rql<commit_after>var fs = require('fs');

module.exports = function (app, config) {
    app.get('/schema/models/:model', config.middleware, function (req, res, next) {
        res.status(200).sendfile("schema/models/" + req.params.model + ".json");
    });
    app.get('/schema/rel/:rel', config.middleware, function (req, res, next) {
        res.status(200).sendfile("schema/rel/" + req.params.rel + ".txt");
    });
    app.get('/schema/rql/:rql', config.middleware, function (req, res, next) {
        res.status(200).sendfile("schema/rql/" + req.params.rql + ".rql");
    });
}
{'fraction_non_alphanumeric': 0.19955654101995565, 'fraction_numerical': 0.013303769401330377, 'mean_word_length': 3.583756345177665, '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': '7619894', 'n_tokens_mistral': 299, 'n_tokens_neox': 293, 'n_words': 58}