Something went wrong. Try again.
unoffical wafrn mirror wafrn.net
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546import swaggerAutogen from 'swagger-autogen'import { environment } from './environment.js'
const config = { info: { version: '0.1.0', title: 'WAFRN Backend', description: 'API routes for wafrn social network' }, host: `${environment.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)