ML-180: remove backup download feature

Delete ArchiveController, its routes, the maintenance UI backup
button, and the test file. Management scripts and Litestream
supersede this functionality.
This commit is contained in:
Claudio Ortolina
2026-05-15 07:13:33 +01:00
parent 93e414cf15
commit 8391cf275a
8 changed files with 30 additions and 57 deletions
@@ -1,17 +0,0 @@
defmodule MusicLibraryWeb.ArchiveControllerTest do
use MusicLibraryWeb.ConnCase
describe "GET /backup" do
test "returns a sqlite database file", %{conn: conn} do
conn = get(conn, "/backup")
assert response(conn, 200)
assert get_resp_header(conn, "content-type") |> hd() =~ "application/x-sqlite3"
[content_disposition] = get_resp_header(conn, "content-disposition")
assert content_disposition =~ "attachment"
assert content_disposition =~ "music_library_"
assert content_disposition =~ ".db"
end
end
end