Browse Source

chore: update routes

cli-archive
nic 1 year ago
parent
commit
9488730463
  1. 2
      apps/web/main.go

2
apps/web/main.go

@ -37,7 +37,7 @@ func main() {
protected.Use(middleware.AuthMiddleware) protected.Use(middleware.AuthMiddleware)
protected.HandleFunc("/", web.DashboardHandler).Methods("GET") 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("/invoices", web.InvoicesHandler).Methods("GET", "POST")
protected.HandleFunc("/ok-invoice/{id}", web.UpdateInvoiceStatusHandler).Methods("PUT") protected.HandleFunc("/ok-invoice/{id}", web.UpdateInvoiceStatusHandler).Methods("PUT")
protected.HandleFunc("/failed-invoice/{id}", web.UpdateInvoiceStatusHandler).Methods("PUT") protected.HandleFunc("/failed-invoice/{id}", web.UpdateInvoiceStatusHandler).Methods("PUT")

Loading…
Cancel
Save