<commit_before>const swaggerJSDoc = require('swagger-jsdoc');
const path = require('path');

const routesPath = path.join(__dirname, './*.js');
module.exports = (app) => {
  // swagger definition
  const swaggerDefinition = {
    info: {
      title: 'DMS API',
      version: '1.0.0',
      description: 'DMS is a full stack document management system, complete with roles and privileges.',
    },
    host: 'localhost:8000',
    basePath: '/',
  };

  // options for the swagger docs
  const options = {
    // import swaggerDefinitions
    swaggerDefinition,
    // path to the API docs
    apis: [routesPath],
  };

  // initialize swagger-jsdoc<commit_msg>[Fix #147521167] update swagger route  to heroku<commit_after>const swaggerJSDoc = require('swagger-jsdoc');
const path = require('path');

const routesPath = path.join(__dirname, './*.js');
module.exports = (app) => {
  // swagger definition
  const swaggerDefinition = {
    info: {
      title: 'DMS API',
      version: '1.0.0',
      description: 'DMS is a full stack document management system, complete with roles and privileges.',
    },
    host: 'haruna-dms.herokuapp.com',
    basePath: '/',
  };

  // options for the swagger docs
  const options = {
    // import swaggerDefinitions
    swaggerDefinition,
    // path to the API docs
    apis: [routesPath],
  };

  // initialize swagger-jsdoc
{'fraction_non_alphanumeric': 0.13386978785662035, 'fraction_numerical': 0.013899049012435992, 'mean_word_length': 3.0117302052785924, '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': '5252864', 'n_tokens_mistral': 438, 'n_tokens_neox': 416, 'n_words': 121}