Closed peterljung closed 5 years ago
Are only GET and POST methods supported by this framework?
GET
POST
I have used gorilla/mux for routing before and I end up with code like this:
r.HandleFunc("/api/accounts", AddAccount).Methods("POST") r.HandleFunc("/api/accounts", GetAccounts).Methods("GET") r.HandleFunc("/api/accounts/{key}", UpdateAccount).Methods("POST") r.HandleFunc("/api/accounts/{key}", DeleteAccount).Methods("DELETE")
At least DELETE seems very useful in any REST like api.
DELETE
I have added the app.Delete routing method in 1.2.6.
app.Delete
Could you try to update your version with go get -u github.com/aerogo/aero?
go get -u github.com/aerogo/aero
Thanks!
Are only
GET
andPOST
methods supported by this framework?I have used gorilla/mux for routing before and I end up with code like this:
At least
DELETE
seems very useful in any REST like api.