mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Refactor download urls and client config
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
@@ -52,7 +52,7 @@ func TestDownloadZip(t *testing.T) {
|
||||
t.Run("zip not existing", func(t *testing.T) {
|
||||
app, router, conf := NewApiTest()
|
||||
DownloadZip(router, conf)
|
||||
r := PerformRequest(app, "GET", "/api/v1/zip/xxx")
|
||||
r := PerformRequest(app, "GET", "/api/v1/zip/xxx?t="+conf.DownloadToken())
|
||||
assert.Equal(t, http.StatusNotFound, r.Code)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user