<commit_before>module.exports = function(app, express) {

  // Facebook OAuth
  app.get('/auth/facebook', function(req, res) {
    res.send('Facebook OAuth');
  });
  app.get('/auth/facebook/callback', function(req, res) {
    res.send('Callback for Facebook OAuth');
  });

  // User Creation
  app.route('/api/users')
    .post(function(req, res) {
      res.send('Create a new user');
    })
    .put(function(req, res) {
      res.send('Update user info');
    })
    .delete(function(req, res) {
      res.send('Delete the user');
    });
};<commit_msg>Add endpoints for Room creation (start of lecture), Note Creation (end of lecture), Editing Notes<commit_after>module.exports = function(app, express) {

  // Facebook OAuth
  app.get('/auth/facebook', function(req, res) {
    res.send('Facebook OAuth');
  });
  app.get('/auth/facebook/callback', function(req, res) {
    res.send('Callback for Facebook OAuth');
  });

  // User Creation
  app.route('/api/users')
    .post(function(req, res) {
      res.send('Create a new user');
    })
    .put(function(req, res) {
      res.send('Update user info');
    })
    .delete(function(req, res) {
      res.send('Delete the user');
    });

  // Room Creation
  app.post('/api/rooms', function(req, res) {
    res.send('Create a room');
  });

  // Note Creation
  app.post('/api/notes/new', function(req, res) {
    res.send('End of lecture, and create all new notes for each user');
  });

  // Note Editing
  app.route('/api/notes')
    .get(function(req, res) {
      /*
       * /api/notes/?userId=id&roomId=id // compare all notes for user
       * /api/notes/?userId=id&roomId=id&filter=show // get all notes for that lecture
       */
      res.send('Compare all notes for the user/room');
    })
    .put(function(req, res) {
      res.send('Edit existing notes (save button)');
    })
    .post(function(req, res) {
      res.send('Add new notes (save button)');
    });
};
{'fraction_non_alphanumeric': 0.17877382792375066, 'fraction_numerical': 0.0, 'mean_word_length': 2.8303747534516766, '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': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7213384', 'n_tokens_mistral': 641, 'n_tokens_neox': 625, 'n_words': 148}