Spaces:
Paused
Paused
Update index.js
Browse files
index.js
CHANGED
|
@@ -134,31 +134,7 @@ async function createCustomSWGenerator({ profileImage, mainImage, caption = "Cus
|
|
| 134 |
*/
|
| 135 |
|
| 136 |
app.get('/', (req, res) => {
|
| 137 |
-
|
| 138 |
-
description: 'Express.js API documentation for generating status WhatsApp',
|
| 139 |
-
endpoints: [
|
| 140 |
-
{
|
| 141 |
-
method: 'POST',
|
| 142 |
-
path: '/generate',
|
| 143 |
-
description: 'Generate a new status with profile image, main image, caption, and views.',
|
| 144 |
-
requestBody: {
|
| 145 |
-
profileImage: 'URL to the profile image',
|
| 146 |
-
mainImage: 'URL to the main image',
|
| 147 |
-
caption: 'Caption for the status',
|
| 148 |
-
views: 'Number of views (integer)',
|
| 149 |
-
},
|
| 150 |
-
exampleRequest: {
|
| 151 |
-
profileImage: 'https://example.com/profile.jpg',
|
| 152 |
-
mainImage: 'https://example.com/main.jpg',
|
| 153 |
-
caption: 'captions!',
|
| 154 |
-
views: 10,
|
| 155 |
-
},
|
| 156 |
-
response: "<Image>"
|
| 157 |
-
},
|
| 158 |
-
],
|
| 159 |
-
};
|
| 160 |
-
|
| 161 |
-
res.json(documentation);
|
| 162 |
});
|
| 163 |
|
| 164 |
app.post('/generate', async (req, res) => {
|
|
|
|
| 134 |
*/
|
| 135 |
|
| 136 |
app.get('/', (req, res) => {
|
| 137 |
+
res.json('hi!');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
});
|
| 139 |
|
| 140 |
app.post('/generate', async (req, res) => {
|