<commit_before>import joi from 'joi';
import auth from '../prereq/auth';
import headers from '../schemas/headers';
import response from '../schemas/response';

export default {
  method: 'POST',
  path: '/particle/webhook',
  config:{
    description: 'The webhook for the partical core/photon/electron to call',
    tags: ['api', 'webhooks', 'particle'],
    pre: [ auth ],
    validate: { headers },
    response
  },
  handler: (req, res) => {
    return res({
      bodybody: 'OH YEAH?',
      payload: 'req.payload'
    });
  }
}<commit_msg>commenting out auth around webhook for right now<commit_after>import joi from 'joi';
import auth from '../prereq/auth';
import headers from '../schemas/headers';
import response from '../schemas/response';

export default {
  method: 'POST',
  path: '/particle/webhook',
  config:{
    description: 'The webhook for the partical core/photon/electron to call',
    tags: ['api', 'webhooks', 'particle'],
    // pre: [ auth ],
    // validate: { headers },
    response
  },
  handler: (req, res) => {
    req.server.log(req.payload)
    return res({
      bodybody: 'OH YEAH?',
      payload: 'req.payload'
    });
  }
}
{'fraction_non_alphanumeric': 0.16394849785407725, 'fraction_numerical': 0.0, 'mean_word_length': 3.1056338028169015, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1538539', 'n_tokens_mistral': 378, 'n_tokens_neox': 360, 'n_words': 110}