jedireza / aqua

:bulb: A website and user system starter
https://jedireza.github.io/aqua/
MIT License
1.38k stars 356 forks source link

Less ambiguous api success responses #197

Closed jedireza closed 7 years ago

jedireza commented 7 years ago

Because the parse validation helper is naive, the client views were getting some unexpected results as seen in this screen shot:

screen shot 2017-05-29 at 11 32 25 am

A simple solution to this was just not sending a response with a message key. Hence this PR changes all { message: "Success." } responses with { success: true }.