1
0
mirror of https://github.com/nokonoko/Uguu.git synced 2024-01-06 13:35:15 +00:00
This commit is contained in:
Go Johansson (neku) 2023-12-10 17:06:14 +01:00
parent 4bf611afac
commit 947d327844
2 changed files with 5 additions and 7 deletions

View File

@ -398,20 +398,16 @@ progress[value]::-webkit-progress-bar {
.js #upload-btn { .js #upload-btn {
display: inline-block !important; display: inline-block !important;
} }
/* /*
* inline command block * inline command block
*/ */
kbd { kbd {
padding: 0.1875rem 0.375rem; padding: 0.1875rem 0.375rem;
font-size: 13px;
color: #FFFFFF; color: #FFFFFF;
background-color: #444444; background-color: #444444;
border-radius: 0.25rem; border-radius: 0.25rem;
} }
kbd kbd {
padding: 0;
font-size: 1em;
}
kbd:before { kbd:before {
content: "$ " content: "$ "
} }

View File

@ -1,14 +1,16 @@
<%- include('./partials/header.ejs'); -%> <%- include('./partials/header.ejs'); -%>
<div class="container"> <div class="container">
<div class="jumbotron"> <div class="jumbotron">
<h1><%= siteName %> Tools</h1> <h1><%= siteName %> API</h1>
</div> </div>
<div class="alert alert-info"> <div class="alert alert-info">
<section> <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>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>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> <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> </section>
</div> </div>
<%- include('./partials/footer.ejs'); -%> <%- include('./partials/footer.ejs'); -%>