Updated to latest Aero

This commit is contained in:
Eduard Urbach 2017-10-14 15:41:31 +02:00
parent 97f02b0f41
commit 78915bd601

View File

@ -17,7 +17,11 @@ func CreatePayment(ctx *aero.Context) string {
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
switch amount {