Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -325,6 +325,21 @@ app.get('/', (req, res) => {
|
|
| 325 |
ContentType: 'image/png'
|
| 326 |
},
|
| 327 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 328 |
],
|
| 329 |
};
|
| 330 |
|
|
|
|
| 325 |
ContentType: 'image/png'
|
| 326 |
},
|
| 327 |
},
|
| 328 |
+
{
|
| 329 |
+
method: 'GET',
|
| 330 |
+
path: '/brat',
|
| 331 |
+
description: 'Generate brat image using text query.',
|
| 332 |
+
request: {
|
| 333 |
+
text: 'input query'
|
| 334 |
+
},
|
| 335 |
+
exampleRequest: {
|
| 336 |
+
text: 'hii iam usinv brat.'
|
| 337 |
+
},
|
| 338 |
+
response: {
|
| 339 |
+
status: 'success',
|
| 340 |
+
ContentType: 'image/png'
|
| 341 |
+
},
|
| 342 |
+
},
|
| 343 |
],
|
| 344 |
};
|
| 345 |
|