From 9ba01a2cbe62573bbe8fde2b2ca08540eff903a4 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Tue, 24 Feb 2026 20:08:43 +0000 Subject: [PATCH] Fix links to creating pool URL --- sync/routes.go | 2 +- sync/upload.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sync/routes.go b/sync/routes.go index 669c58d0..706a3eab 100644 --- a/sync/routes.go +++ b/sync/routes.go @@ -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)) diff --git a/sync/upload.go b/sync/upload.go index 7683c826..eb3435aa 100644 --- a/sync/upload.go +++ b/sync/upload.go @@ -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 }