From e05521591bb7cfc2eb19c56c30d207541e617ef1 Mon Sep 17 00:00:00 2001 From: Jason Streifling Date: Sun, 1 Sep 2024 18:16:26 +0200 Subject: [PATCH] Add route for PDF uploads --- cmd/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/main.go b/cmd/main.go index 79d7b32..acff9f2 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -81,6 +81,7 @@ func main() { mux.HandleFunc("POST /issue/publish", f.PublishLatestIssue(config, db, store)) mux.HandleFunc("POST /issue/upload-image", f.UploadIssueImage(config, store)) mux.HandleFunc("POST /login", f.Login(config, db, store)) + mux.HandleFunc("POST /pdf/upload", f.UploadPDF(config, store)) mux.HandleFunc("POST /tag/add", f.AddTag(config, db, store)) mux.HandleFunc("POST /user/add", f.AddUser(config, db, store)) mux.HandleFunc("POST /user/add-first", f.AddFirstUser(config, db, store))