Module routes

Module routes 

Source
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 ๐Ÿ”’