<commit_before>'use strict';

module.exports = function (app) {

    var note = new app.controllers.Note();

    return [
        {
            method: 'get',
            url: '/notes',
            action: note.list,
            cors: true
        },
        {
            method: 'get',
            url: '/notes/:id',
            action: note.find,
            cors: true
        },
        {
            method: 'post',
            url: '/notes',
            action: note.create,
            cors: true
        },
        {
            method: 'put',
            url: '/notes/:id',
            action: note.update,
            cors: true
        },
        {
            method: 'delete',
            url: '/note/:id',
            action: note.delete,
            cors: true
        }
    ];
};<commit_msg>update cors<commit_after>'use strict';

module.exports = function (app) {

    var note = new app.controllers.Note();

    return [
        {
            method: 'get',
            url: '/notes',
            action: note.list,
            cors: false
        },
        {
            method: 'get',
            url: '/notes/:id',
            action: note.find,
            cors: false
        },
        {
            method: 'post',
            url: '/notes',
            action: note.create,
            cors: false
        },
        {
            method: 'put',
            url: '/notes/:id',
            action: note.update,
            cors: false
        },
        {
            method: 'delete',
            url: '/note/:id',
            action: note.delete,
            cors: true
        }
    ];
};
{'fraction_non_alphanumeric': 0.13226205191594562, 'fraction_numerical': 0.0, 'mean_word_length': 0.9412470023980816, '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': '5581235', 'n_tokens_mistral': 447, 'n_tokens_neox': 448, 'n_words': 101}