<commit_before>var userSubs = require('./../controllers/user-subs.controller');

module.exports = function(router) {
  router
    .route('/signup')
    .post(userSubs.signup);

  router
    .route('/login')
    .post(userSubs.login);

  router
    .route('/:username/subscriptions')
    .get(userSubs.getUserSubscriptions);

  router
    .route('/:username/subscriptions/posts')
    .get(userSubs.getUserPostSubscriptions);
  
  router
    .route('/:username/subscriptions/tags')
    .get(userSubs.getUserTagSubscriptions);

  router
    .route('/:username/new-subs')
    .post(userSubs.createNewSubscription);

  router
    .route('/:username/subscription/:_id')
    .get(userSubs.getUserSubscription)
    .put(userSubs.editUserSubscription)
    .delete(userSubs.deleteUserSubscription);

};<commit_msg>add the logout route<commit_after>var userSubs = require('./../controllers/user-subs.controller');

module.exports = function(router) {
  router
    .route('/signup')
    .post(userSubs.signup);

  router
    .route('/login')
    .post(userSubs.login);

  router
    .route('/:username/logout')
    .get(userSubs.logout);

  router
    .route('/:username/subscriptions')
    .get(userSubs.getUserSubscriptions);

  router
    .route('/:username/subscriptions/posts')
    .get(userSubs.getUserPostSubscriptions);

  router
    .route('/:username/subscriptions/tags')
    .get(userSubs.getUserTagSubscriptions);

  router
    .route('/:username/new-subs')
    .post(userSubs.createNewSubscription);

  router
    .route('/:username/subscription/:_id')
    .get(userSubs.getUserSubscription)
    .put(userSubs.editUserSubscription)
    .delete(userSubs.deleteUserSubscription);

};
{'fraction_non_alphanumeric': 0.15517241379310345, 'fraction_numerical': 0.0, 'mean_word_length': 3.6880222841225625, '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': '790195', 'n_tokens_mistral': 561, 'n_tokens_neox': 558, 'n_words': 62}