Skip to content

Commit

Permalink
1.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
nokonoko committed Dec 10, 2023
1 parent 4bf611a commit 947d327
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 1 addition & 5 deletions src/static/css/uguu.css
Original file line number Diff line number Diff line change
Expand Up @@ -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: "$ "
}
6 changes: 4 additions & 2 deletions src/templates/api.ejs
Original file line number Diff line number Diff line change
@@ -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[][email protected] 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[][email protected] https://<%= DOMAIN %>/upload.php</kbd></p>
</section>
</div>
<%- include('./partials/footer.ejs'); -%>

0 comments on commit 947d327

Please sign in to comment.