Fix links to creating pool URL

This commit is contained in:
Eli Ribble 2026-02-24 20:08:43 +00:00
parent 6180860ac0
commit 9ba01a2cbe
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View file

@ -75,7 +75,7 @@ func Router() chi.Router {
r.Method("GET", "/text/{destination}", authenticatedHandler(getTextMessages))
r.Method("GET", "/upload", authenticatedHandler(getUploadList))
r.Method("GET", "/upload/pool", authenticatedHandler(getUploadPoolCreate))
r.Method("POST", "/upload/pool/create", authenticatedHandlerPostMultipart(postUploadPoolCreate))
r.Method("POST", "/upload/pool", authenticatedHandlerPostMultipart(postUploadPoolCreate))
r.Method("GET", "/upload/{id}", authenticatedHandler(getUploadByID))
r.Method("POST", "/upload/{id}/discard", authenticatedHandlerPost(postUploadDiscard))

View file

@ -104,5 +104,5 @@ func postUploadPoolCreate(ctx context.Context, r *http.Request, org *models.Orga
if err != nil {
return "", newError("Failed to create new pool: %w", err)
}
return fmt.Sprintf("/pool/upload/%d", pool_upload.ID), nil
return fmt.Sprintf("/upload/%d", pool_upload.ID), nil
}