<commit_before>/**
 * Created by admin on 1.12.2016 г..
 */
/* globals module require */

'use strict';

const express = require('express');

module.exports = function (app, data) {
    let router = new express.Router();
    let eventsController = require('../controllers/events-controller')(data);

    router
        .get('/', eventsController.getEventsPage)
        .get('/add-event', eventsController.getCreateEventPage )
        .get('/add-event/:categoryName', eventsController.getCreateEventPage )
        .post('/add-event/:categoryName', eventsController.createEvent )
        .get('/:category', eventsController.getEventsPage)
        .get('/:category/:id', eventsController.getEventsPage)
        .get('/:category/sure-participate/:id', eventsController.getIncreaseParticipatingInEventButtonAction)
        .get('/:category/interested/:id', eventsController.getIncreaseInterestedInEventButtonAction)
        .post('/:category/add-comment/:id', eventsController.createCommentToEventButtonAction)
        .get('/:category/:id', eventsController.getIncreaseInterestedInEventButtonAction);

    app.use('/categories',  router);
};<commit_msg>small change in roots<commit_after>/**
 * Created by admin on 1.12.2016 г..
 */
/* globals module require */

'use strict';

const express = require('express');

module.exports = function (app, data) {
    let router = new express.Router();
    let eventsController = require('../controllers/events-controller')(data);

    router
        .get('/', eventsController.getEventsPage)
        .get('/categories/add-event', eventsController.getCreateEventPage )
        .get('/categories/add-event/:categoryName', eventsController.getCreateEventPage )
        .post('/categories/add-event/:categoryName', eventsController.createEvent )
        .post('/comments/post-comment-to-event/:id', eventsController.createCommentToEventButtonAction )
        .get('/categories/:category', eventsController.getEventsPage)
        .get('/categories/:category/:id', eventsController.getEventsPage)
        .get('/categories/:category/sure-participate/:id', eventsController.getIncreaseParticipatingInEventButtonAction)
        .get('/categories/:category/interested/:id', eventsController.getIncreaseInterestedInEventButtonAction)
        .get('/categories/:category/:id', eventsController.getIncreaseInterestedInEventButtonAction);

    // app.use('/categories',  router);
    app.use(router);
};
{'fraction_non_alphanumeric': 0.1453871499176277, 'fraction_numerical': 0.005766062602965404, 'mean_word_length': 4.081589958158996, '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': '401721', 'n_tokens_mistral': 661, 'n_tokens_neox': 653, 'n_words': 102}