Fix links to creating pool URL
This commit is contained in:
parent
6180860ac0
commit
9ba01a2cbe
2 changed files with 2 additions and 2 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue