]> jfr.im git - uguu.git/commitdiff
1.8.3 v.1.8.3
authorGo Johansson (neku) <redacted>
Sun, 10 Dec 2023 16:06:14 +0000 (17:06 +0100)
committerGo Johansson (neku) <redacted>
Sun, 10 Dec 2023 16:06:14 +0000 (17:06 +0100)
src/static/css/uguu.css
src/templates/api.ejs

index 8f19776c4e6b43fad52d02ff49bdbd6f7da7c087..844e93b2926aac9af588d15bc6a129f57d0d6d7a 100755 (executable)
@@ -398,20 +398,16 @@ progress[value]::-webkit-progress-bar {
 .js #upload-btn {
   display: inline-block !important;
 }
-
 /*
  * inline command block
  */
 kbd {
   padding: 0.1875rem 0.375rem;
+  font-size: 13px;
   color: #FFFFFF;
   background-color: #444444;
   border-radius: 0.25rem;
 }
-kbd kbd {
-  padding: 0;
-  font-size: 1em;
-}
 kbd:before {
   content: "$ "
 }
\ No newline at end of file
index 3d390c3743a12aeed3c1deb0c02a7d47418efe67..e98405b2afba23a9f4528aa8d7271f3575a8a380 100755 (executable)
@@ -1,14 +1,16 @@
 <%- include('./partials/header.ejs'); -%>
 <div class="container">
     <div class="jumbotron">
-        <h1><%= siteName %> Tools</h1>
+        <h1><%= siteName %> API</h1>
     </div>
     <div class="alert alert-info">
         <section>
+            <h3>Endpoint</h3>
             <p>You may POST an array of files to&nbsp;<b>https://<%= DOMAIN %>/upload.php</b>, by default you will get a json response.</p>
-            <p>For example using Curl: <kbd>curl -i -F files[]=@yourfile.jpeg https://<%= DOMAIN %>/upload.php</kbd></p>
             <p>If you want a response in something else than json you add a flag to specify what format you want, for example&nbsp;<b>https://<%= DOMAIN %>/upload.php?output=csv</b>.</p>
             <p>Valid response types are: json, csv, text, html and gyazo.</p>
+            <h3>Curl Example</h3>
+            <p><kbd>curl -i -F files[]=@yourfile.jpeg https://<%= DOMAIN %>/upload.php</kbd></p>
         </section>
     </div>
 <%- include('./partials/footer.ejs'); -%>
\ No newline at end of file