<commit_before>import express from 'express'
import bodyParser from 'body-parser'
import cors from 'cors'
import { errors } from './util'
import registration from './registration/routes'
import authenticate from './security/routes'

export default function createApi(knex, redis) {
  return express()
    .disable('x-powered-by')
    .use(cors())
    .use(bodyParser.json())
    .use('/registration', registration(knex))
    .use('/authenticate', authenticate(knex, redis))
    .use(errors.errorHandler())
}<commit_msg>Update api creation module. #6<commit_after>import express from 'express'
import bodyParser from 'body-parser'
import cors from 'cors'
import { errors } from './util'
import registration from './registration/routes'
import authenticate from './authentication/routes'

export default function createApi(knex, redis) {
  return express()
    .disable('x-powered-by')
    .use(cors())
    .use(bodyParser.json())
    .use('/registration', registration(knex))
    .use('/authenticate', authenticate(knex, redis))
    .use(errors.errorHandler())
}
{'fraction_non_alphanumeric': 0.14514608859566447, 'fraction_numerical': 0.000942507068803016, 'mean_word_length': 4.648936170212766, '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': '2309287', 'n_tokens_mistral': 320, 'n_tokens_neox': 312, 'n_words': 84}