mirror of
https://github.com/aclindsa/moneygo.git
synced 2025-07-03 12:48:38 -04:00
Prefix all API endpoints with 'v1/', pluralize collections
This commit is contained in:
@ -275,7 +275,7 @@ func SecurityHandler(r *http.Request, tx *Tx) ResponseWriterWriter {
|
||||
return ResponseWrapper{201, &security}
|
||||
} else if r.Method == "GET" {
|
||||
var securityid int64
|
||||
n, err := GetURLPieces(r.URL.Path, "/security/%d", &securityid)
|
||||
n, err := GetURLPieces(r.URL.Path, "/v1/securities/%d", &securityid)
|
||||
|
||||
if err != nil || n != 1 {
|
||||
//Return all securities
|
||||
|
Reference in New Issue
Block a user