{"size": 635, "ext": "js", "max_stars_repo_path": "src/config/swagger.js", "max_stars_repo_name": "kburakf/api-restrict", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/config/swagger.js", "max_issues_repo_name": "kburakf/api-restrict", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/config/swagger.js", "max_forks_repo_name": "kburakf/api-restrict", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.4230769231, "max_line_length": 102, "alphanum_fraction": 0.6031496063}
const { env, server: { host } } = require('./environments/default');
const UserSchema = require('../schemas/user');

const protocol = env === 'dev' ? 'http' : 'https';

module.exports = {
  swagger: '2.0',
  info: {
    title: 'Express API',
    description: 'Building a blazing fast REST API with Node.js, MongoDB, Redis, Express and Swagger',
    version: '1.0.0',
    contact: {
      name: 'Kürşat Burak Farız',
      email: 'kburakfariz@gmail.com',
    },
  },
  exposeRoute: true,
  host: `${host}`,
  schemes: [protocol],
  consumes: ['application/json'],
  produces: ['application/json'],
  paths: {
    ...UserSchema,
  },
};
