issues
search
LukeBrandon
/
fluke
5
stars
0
forks
source link
refactor: remove queries from api route
#49
Closed
FlynnOConnell
closed
1 year ago
FlynnOConnell
commented
1 year ago
db queries now separate functions and called from controllers
handler return types are now all Ok(StatusCode, Model) tuples
queries made consistent, all using query! or query_as! macros
custom error types made consistent so result/error matching returns the same type for both arms