~mort/coffeepaste

ref: 1c00b974ba02d62934c2491382233346535ac414 coffeepaste/web/index.html -rw-r--r-- 1.6 KiB
1c00b974Martin Dørum upgrade dependencies 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<html>
<head>
    <meta charset="utf-8">
    <title>Coffeepaste</title>
<style>
body {
    line-height: 1.5;
}
</style>
</head>
<body>
</body>
<pre id="man">
COFFEEPASTE(1)                   User Commands                   COFFEEPASTE(1)

<b>NAME</b>
        coffeepaste - upload pastes

<b>SYNOPSIS</b>
        curl --upload-file [FILE] [URL]
        echo "Hello World" | curl --upload-file - [URL]

<b>DESCRIPTION</b>
        Upload data to the server, get a URL back. The file will be deleted
        a while after the last read.

        <b>GET /, GET /index.html</b>
                Get this index page.

        <b>GET</b> /<u>ID</u>
                Fetch the raw file with the given ID.

        <b>GET</b> /<u>ID.EXT</u>
                Fetch the file with the given ID, displayed in a way
                appropriate for that file type.

        <b>PUT</b> /<u>PATH</u>
                Upload a file. If PATH has a file extension, the
                returned URL will have the same file extension.
                The URL of the uploaded file is returned.

<b>AUTHOR</b>
        Written by Martin Dørum.

<b>WWW</b>
        <a href="https://sr.ht/~mort/coffeepaste/">https://sr.ht/~mort/coffeepaste/</a>

<b>REPORTING BUGS</b>
        Submit bug reports to
        <a href="https://todo.sr.ht/~mort/coffeepaste">https://todo.sr.ht/~mort/coffeepaste</a>.

coffeepaste 1.3.0                October 2020                    COFFEEPASTE(1)
</pre>

<script>
// This isn't super nice, but meh.
var man = document.getElementById("man");
man.innerHTML = man.innerHTML.replace(/\[URL\]/g, location.protocol + "//" + location.host);
</script>
</html>