randydev commited on
Commit
776ce42
·
verified ·
1 Parent(s): a57c277

Update plugins/federations.js

Browse files
Files changed (1) hide show
  1. plugins/federations.js +24 -1
plugins/federations.js CHANGED
@@ -145,7 +145,30 @@ FedsRoutes.post("/api/v2/federation/subfed", authenticateApiKey, apiLimiter, asy
145
  }
146
  });
147
 
148
- FedsRoutes.get("/api/v1/federation/getfed/:uuid", authenticateApiKey, apiLimiter, async (req, res) => {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  try {
150
  const federation = await Federation.findOne({ uuid: req.params.uuid });
151
 
 
145
  }
146
  });
147
 
148
+ /**
149
+ * @swagger
150
+ * /api/v2/federation/getfed/{uuid}:
151
+ * get:
152
+ * summary: Check Federation Info
153
+ * tags: [Federation]
154
+ * parameters:
155
+ * - in: path
156
+ * name: uuid
157
+ * required: true
158
+ * description: Check uuid to info
159
+ * schema:
160
+ * type: string
161
+ * - in: header
162
+ * name: x-api-key
163
+ * required: true
164
+ * description: API key for authentication
165
+ * schema:
166
+ * type: string
167
+ * responses:
168
+ * 200:
169
+ * description: Returns
170
+ */
171
+ FedsRoutes.get("/api/v2/federation/getfed/:uuid", authenticateApiKey, apiLimiter, async (req, res) => {
172
  try {
173
  const federation = await Federation.findOne({ uuid: req.params.uuid });
174