|
|
|
@ -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") |
|
|
|
|