Web
The Filepack server responds to the following web routes:
| method | path | description |
|---|---|---|
| GET | / | Display all packages. |
| GET | /artwork | Serve cover art of package with fingerprint. |
| GET | /artwork | Serve thumbnail of cover art of package with fingerprint. |
| GET | /directory | Display entries of directory with hash. |
| GET | /favicon.ico | Serve favicon. |
| GET | /file | Serve file with hash. |
| GET | /file | Serve file with hash, with content type inferred from path, redirecting to /file/{hash} if the extension of path is not recognized. |
| GET | /files | Display all files on the server. |
| GET | /install.sh | Serve installation script. |
| GET | /media | Serve audio item of package with fingerprint. |
| GET | /media | Serve image item of package with fingerprint. |
| GET | /media | Serve thumbnail of image item of package with fingerprint. |
| GET | /media | Serve video item of package with fingerprint. |
| GET | /media | Serve placeholder image of video item of package with fingerprint. |
| GET | /media | Serve thumbnail of placeholder image of video item of package with fingerprint. |
| GET | /mount | Redirect to root of mounted package, with trailing slash. |
| GET | /mount | Serve index.html from static directory of mounted package. |
| GET | /mount | Serve path from static directory of mounted package. |
| GET | /package | Display package. |
| GET | /package | Display revision history of package. |
| GET | /package | Display media item of package. |
| GET | /package | Display media of package. |
| GET | /packages | Display all packages. |
| GET | /static | Serve static asset at path. |
And the following fallback routes, if no other route matches:
| method | path | description |
|---|---|---|
| GET | /{fingerprint} | Redirect to /package/{fingerprint} |
| GET | /{number} | Redirect to /package/{number} |
| GET | /{revision} | Redirect to /package/{revision} |
| GET | /{name}/ | Serve static/index.html of mounted web package with name |
| GET | /{name}/{*path} | Serve file at static/{path} of mounted web package with name |