Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Commit
·
be866be
1
Parent(s):
2cae2a9
clarify that this is for the Stories Factory
Browse files- src/index.mts +7 -1
src/index.mts
CHANGED
@@ -23,8 +23,14 @@ process.on('uncaughtException', (error: Error) => {
|
|
23 |
app.use(express.json({ limit: '200mb' }));
|
24 |
app.use(express.urlencoded({ limit: '200mb', extended: true }));
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
// the export robot has only one job: to export .clap files
|
27 |
-
app.post("/
|
28 |
|
29 |
let data: Uint8Array[] = [];
|
30 |
|
|
|
23 |
app.use(express.json({ limit: '200mb' }));
|
24 |
app.use(express.urlencoded({ limit: '200mb', extended: true }));
|
25 |
|
26 |
+
app.get("/", async (req, res) => {
|
27 |
+
res.status(200)
|
28 |
+
res.write("This API is a component of the Clap-to-MP4 rendering service provided by AiTube. It is used for instance by the Stories Factory.")
|
29 |
+
res.end()
|
30 |
+
})
|
31 |
+
|
32 |
// the export robot has only one job: to export .clap files
|
33 |
+
app.post("/", async (req, res) => {
|
34 |
|
35 |
let data: Uint8Array[] = [];
|
36 |
|