Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -20,6 +20,13 @@ func GetStatementDetailsHandler(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
vars := mux.Vars(r)
|
||||
accountCode := vars["accountCode"]
|
||||
if accountCode == "" {
|
||||
accountCode = vars["id"]
|
||||
}
|
||||
if accountCode == "" {
|
||||
http.Error(w, "account code is required", http.StatusBadRequest)
|
||||
return
|
||||
}
|
||||
|
||||
startDate := r.URL.Query().Get("startdate")
|
||||
endDate := r.URL.Query().Get("enddate")
|
||||
|
||||
Reference in New Issue
Block a user