jbilcke-hf HF staff commited on
Commit
bb04353
·
1 Parent(s): 7a3197b
Files changed (1) hide show
  1. src/index.ts +2 -14
src/index.ts CHANGED
@@ -31,19 +31,7 @@ app.use(express.urlencoded({ limit: '200mb', extended: true }));
31
  app.get("/", async (req, res) => {
32
  res.status(200)
33
 
34
- const oldDocumentation = `<html>
35
- <head></head>
36
- <body>
37
- <p style="color: black; font-family: monospace;">
38
- This API is a component of the Clap-to-MP4 rendering service provided by AiTube.<br/>
39
- It is used for instance by the Stories Factory.
40
- </p>
41
- </body>
42
- <html>`
43
-
44
- // let's wait to put this on a separate API endpoint,
45
- // for mainstream users
46
- const stylishDocumentation = `<html>
47
  <head></head>
48
  <body style="display: flex;
49
  align-items: center;
@@ -76,7 +64,7 @@ $ curl -o movie.mp4 \\
76
  </body>
77
  <html>`
78
 
79
- res.write(oldDocumentation)
80
  res.end()
81
  })
82
 
 
31
  app.get("/", async (req, res) => {
32
  res.status(200)
33
 
34
+ const documentation = `<html>
 
 
 
 
 
 
 
 
 
 
 
 
35
  <head></head>
36
  <body style="display: flex;
37
  align-items: center;
 
64
  </body>
65
  <html>`
66
 
67
+ res.write(documentation)
68
  res.end()
69
  })
70