Updated to latest Aero
This commit is contained in:
parent
97f02b0f41
commit
78915bd601
@ -17,7 +17,11 @@ func CreatePayment(ctx *aero.Context) string {
|
|||||||
return ctx.Error(http.StatusUnauthorized, "Not logged in", nil)
|
return ctx.Error(http.StatusUnauthorized, "Not logged in", nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
amount := string(ctx.RequestBody())
|
amount, err := ctx.Request().Body().String()
|
||||||
|
|
||||||
|
if err != nil {
|
||||||
|
return ctx.Error(http.StatusBadRequest, "Could not read amount", err)
|
||||||
|
}
|
||||||
|
|
||||||
// Verify amount
|
// Verify amount
|
||||||
switch amount {
|
switch amount {
|
||||||
|
Loading…
Reference in New Issue
Block a user