<commit_before>var userController = require('../controllers/userController');
var topicController = require('../controllers/topicController');
var plurbController = require('../controllers/plurbController');
var Purest = require('purest');

var google = new Purest({ provider: 'google' });

module.exports = function (app) {
  /* User Routes */
  app.route('/api/users')
    .get(userController.getAllUsers);

  //find or delete a user based off their unique Google ID
  app.route('/api/user/:googid')
    .get(userController.getUser)
    .post(userController.findOrCreateUser);

  //add and find friends
  app.route('/api/friend')
    .get(userController.getFriends)
    .post(userController.addFriend);

  app.route('/api/removefriend/:googid')
    .post(userController.removeFriend);

  /* Topic Routes */
  app.route('/api/topic')
    .get(topicController.getAllTopics)
    .post(topicController.findOrCreateTopic);

  app.route('/api/topic/:topicName')
    .get(topicController.getTopicByName)
    .post(topicController.deleteTopic);
  
  /* Plurb Routes */
  app.route('/api/plurb')<commit_msg>(feat) Add getAllPlurbs route<commit_after>var userController = require('../controllers/userController');
var topicController = require('../controllers/topicController');
var plurbController = require('../controllers/plurbController');
var Purest = require('purest');

var google = new Purest({ provider: 'google' });

module.exports = function (app) {
  /* User Routes */
  app.route('/api/users')
    .get(userController.getAllUsers);

  //find or delete a user based off their unique Google ID
  app.route('/api/user/:googid')
    .get(userController.getUser)
    .post(userController.findOrCreateUser);

  //add and find friends
  app.route('/api/friend')
    .get(userController.getFriends)
    .post(userController.addFriend);

  app.route('/api/removefriend/:googid')
    .post(userController.removeFriend);

  /* Topic Routes */
  app.route('/api/topic')
    .get(topicController.getAllTopics)
    .post(topicController.findOrCreateTopic);

  app.route('/api/topic/:topicName')
    .get(topicController.getTopicByName)
    .post(topicController.deleteTopic);
  
  /* Plurb Routes */
  app.route('/api/plurb')
    .get(plurbController.getAllPlurbs)
{'fraction_non_alphanumeric': 0.15343680709534369, 'fraction_numerical': 0.0, 'mean_word_length': 4.162471395881007, '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': '2607936', 'n_tokens_mistral': 710, 'n_tokens_neox': 695, 'n_words': 121}