unoffical wafrn mirror wafrn.net
atproto social-network activitypub
at cache-folder-container 45 lines 1.1 kB view raw
1import swaggerAutogen from 'swagger-autogen' 2import { completeEnvironment } from './utils/backendOptions.js' 3 4const config = { 5 info: { 6 version: '0.1.0', 7 title: 'WAFRN Backend', 8 description: 'API routes for wafrn social network' 9 }, 10 host: `${completeEnvironment.frontendUrl}`, 11 schemes: ['http'], 12 securityDefinitions: { 13 bearerAuth: { 14 type: 'http', 15 scheme: 'bearer', 16 bearerFormat: 'JWT' 17 } 18 } 19} 20 21const files = [ 22 './index.ts', 23 './routes/blocks.ts', 24 './routes/follows.ts', 25 './routes/media.ts', 26 './routes/notifications.ts', 27 './routes/posts.ts', 28 './routes/search.ts', 29 './routes/users.ts', 30 './routes/admin.ts', 31 './routes/blockUserServer.ts', 32 './routes/dashboard.ts', 33 './routes/like.ts', 34 './routes/mute.ts', 35 './routes/deletePost.ts', 36 './routes/emojiReact.ts', 37 './routes/emojis.ts', 38 './routes/forum.ts', 39 './routes/remoteCache.ts', 40 './routes/silencePost.ts', 41 './routes/status.ts', 42 './routes/frontend.ts' 43] 44 45swaggerAutogen({ openapi: '3.0.0' })('./swagger.json', files, config)