Expand description
Glues every HTTP handler together into one router with middleware.
Modulesยง
- admin
- Admin panel: login, JWT sessions, listing and deleting files.
- api_doc
- manage
- Endpoints for getting file info, deleting, renewing the ID, and looking up owned files.
- noscript
- HTML endpoints that work without JavaScript.
- register
- Internal endpoint for juicehost to register a file it already stored. Avoids pushing the same data twice when juicehost already has the file.
- tus
- upload
- Handles multipart file uploads. Streams non-gzip data straight to juicehost. Gzip uploads get buffered, decompressed, then sent.
Functionsยง
- add_
security_ ๐headers - Middleware that applies security-related response headers.
- build_
router - Build the main router with every route and middleware layer.
- config_
handler - health_
handler - openapi_
json_ ๐handler