-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
5 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <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 <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'); -%> |