Removed res from locals, and added query and body.