mirror of
https://github.com/restic/rest-server.git
synced 2025-12-07 09:36:13 -08:00
Refactor the old HTTP handlers to fit the purpose of the new http.Handler: - repo.New function to instantiate a handler for a single repo (can be done dynamically for every request) - Single ServeHTTP entrypoint - Move quota management to two methods that will be implemented later (stubs for now) - Move metrics update to an external function (BlobMetricFunc type) - Use constants and options for file modes