All possible routers: /s
, and /x
. The /s
is the most
complicated router because we are limited to use these prefixes
(for many reasons, e.g. deploy to an existing domain that served a lot
different routers. The prefix is configurable).
Thus, all kinds of data, pages, static files are served under this router.
The GET request query parameters of /s
are listed as follows:
mode
, possible options: stats
, index
, index-pro
admin
, access admin dashboardindex-pro
mode, admin only
ps
, page sizepn
, page numberindex
mode
ps
, page sizepn
, page numberstats
mode
a
, alias for stat datastat
, possible options: referer
, ua
, time
t0
, start timet1
, end timeThe POST request body of /s
is in the following format:
{
"op": "create",
"alias": "awesome-link",
"data": {
"alias": "awesome-link",
"url": "https://github.com/changkun",
"private": true,
"valid_from": "2022-01-01T00:00:00+00:00"
}
}
MIT © 2020-2021 Changkun Ou