better end points and better tests
This commit is contained in:
@@ -26,8 +26,8 @@ func newBudgetServer(t *testing.T) *httptest.Server {
|
||||
|
||||
mux := http.NewServeMux()
|
||||
mux.HandleFunc("POST /api/v1/budget/create", h.Create)
|
||||
mux.HandleFunc("PUT /api/v1/budgets/update", h.Update)
|
||||
mux.HandleFunc("DELETE /api/v1/budgets/delete", h.Delete)
|
||||
mux.HandleFunc("PUT /api/v1/budget/update", h.Update)
|
||||
mux.HandleFunc("DELETE /api/v1/budget/delete", h.Delete)
|
||||
|
||||
srv := httptest.NewServer(mux)
|
||||
t.Cleanup(srv.Close)
|
||||
|
||||
Reference in New Issue
Block a user