Update plugins/carbon.js
Browse files- plugins/carbon.js +29 -0
plugins/carbon.js
CHANGED
@@ -24,6 +24,35 @@ async function MakerCarbon(args) {
|
|
24 |
}
|
25 |
}
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
CarbonRoutes.post("/api/v1/maker/carbon", async (req, res) => {
|
28 |
try {
|
29 |
const query = req.body.query;
|
|
|
24 |
}
|
25 |
}
|
26 |
|
27 |
+
/**
|
28 |
+
* @swagger
|
29 |
+
* /api/v1/fluxai-ai:
|
30 |
+
* post:
|
31 |
+
* summary: Carbon
|
32 |
+
* description: null.
|
33 |
+
* requestBody:
|
34 |
+
* required: true
|
35 |
+
* content:
|
36 |
+
* application/json:
|
37 |
+
* schema:
|
38 |
+
* type: object
|
39 |
+
* properties:
|
40 |
+
* query:
|
41 |
+
* type: string
|
42 |
+
* description: null.
|
43 |
+
* responses:
|
44 |
+
* 200:
|
45 |
+
* description: A successfully processed image.
|
46 |
+
* content:
|
47 |
+
* image/jpeg:
|
48 |
+
* schema:
|
49 |
+
* type: string
|
50 |
+
* format: binary
|
51 |
+
* 400:
|
52 |
+
* description: Missing query parameter.
|
53 |
+
* 500:
|
54 |
+
* description: Internal server error.
|
55 |
+
*/
|
56 |
CarbonRoutes.post("/api/v1/maker/carbon", async (req, res) => {
|
57 |
try {
|
58 |
const query = req.body.query;
|