import swaggerAutogen from 'swagger-autogen' import { completeEnvironment } from './utils/backendOptions.js' const config = { info: { version: '0.1.0', title: 'WAFRN Backend', description: 'API routes for wafrn social network' }, host: `${completeEnvironment.frontendUrl}`, schemes: ['http'], securityDefinitions: { bearerAuth: { type: 'http', scheme: 'bearer', bearerFormat: 'JWT' } } } const files = [ './index.ts', './routes/blocks.ts', './routes/follows.ts', './routes/media.ts', './routes/notifications.ts', './routes/posts.ts', './routes/search.ts', './routes/users.ts', './routes/admin.ts', './routes/blockUserServer.ts', './routes/dashboard.ts', './routes/like.ts', './routes/mute.ts', './routes/deletePost.ts', './routes/emojiReact.ts', './routes/emojis.ts', './routes/forum.ts', './routes/remoteCache.ts', './routes/silencePost.ts', './routes/status.ts', './routes/frontend.ts' ] swaggerAutogen({ openapi: '3.0.0' })('./swagger.json', files, config)