From 9488730463ce413da334c75baae0730facfd7de3 Mon Sep 17 00:00:00 2001 From: nic Date: Fri, 3 Jan 2025 14:01:16 -0500 Subject: [PATCH] chore: update routes --- apps/web/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/main.go b/apps/web/main.go index 1b69d2d..7382e1e 100644 --- a/apps/web/main.go +++ b/apps/web/main.go @@ -37,7 +37,7 @@ func main() { protected.Use(middleware.AuthMiddleware) protected.HandleFunc("/", web.DashboardHandler).Methods("GET") - protected.HandleFunc("/jobs", web.JobsHandler).Methods("GET") + protected.HandleFunc("/jobs", web.JobsHandler).Methods("GET", "POST") protected.HandleFunc("/invoices", web.InvoicesHandler).Methods("GET", "POST") protected.HandleFunc("/ok-invoice/{id}", web.UpdateInvoiceStatusHandler).Methods("PUT") protected.HandleFunc("/failed-invoice/{id}", web.UpdateInvoiceStatusHandler).Methods("PUT")