<commit_before>var handlers = require('./handlers'),
    allowCrossDomain = function(req, res, next) {
        res.header('Access-Control-Allow-Origin', '*');
        res.set('Access-Control-Allow-Headers', 'X-Requested-With, Content-Type');
        res.set('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS');
        next();
    };

exports.setup = function (api) {
    api.use(allowCrossDomain);

    api.get('/retrospectives', handlers.getRetrospectives);
    api.get('/retrospectives/:retroId', handlers.getRetrospective);
    api.put('/retrospectives/:retroId', handlers.putRetrospective);
    api.post('/retrospectives', handlers.postRetrospective);

    api.get('/retrospectives/:retroId/tickets', handlers.getTickets);
    api.get('/retrospectives/:retroId/tickets/:ticketId', handlers.getTicket);
    api.post('/retrospectives/:retroId/tickets', handlers.postTicketToRetrospective);
    api.delete('/retrospectives/:retroId/tickets/:ticketId', handlers.deleteTicket);<commit_msg>Added PUT for resource /retrospectives/:retroId/tickets/:ticketId<commit_after>var handlers = require('./handlers'),
    allowCrossDomain = function(req, res, next) {
        res.header('Access-Control-Allow-Origin', '*');
        res.set('Access-Control-Allow-Headers', 'X-Requested-With, Content-Type');
        res.set('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE,OPTIONS');
        next();
    };

exports.setup = function (api) {
    api.use(allowCrossDomain);

    api.get('/retrospectives', handlers.getRetrospectives);
    api.get('/retrospectives/:retroId', handlers.getRetrospective);
    api.put('/retrospectives/:retroId', handlers.putRetrospective);
    api.post('/retrospectives', handlers.postRetrospective);

    api.get('/retrospectives/:retroId/tickets', handlers.getTickets);
    api.get('/retrospectives/:retroId/tickets/:ticketId', handlers.getTicket);
    api.put('/retrospectives/:retroId/tickets/:ticketId', handlers.putTicket);
    api.post('/retrospectives/:retroId/tickets', handlers.postTicketToRetrospective);
    api.delete('/retrospectives/:retroId/tickets/:ticketId', handlers.deleteTicket);
{'fraction_non_alphanumeric': 0.1670577193805725, 'fraction_numerical': 0.0, 'mean_word_length': 4.777777777777778, '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': '1953553', 'n_tokens_mistral': 686, 'n_tokens_neox': 666, 'n_words': 73}