This pr adds functionality to check the params of "create bin" POST request.
First level: Other params than params[:bin] and params[:retention_time] are removed.
"bin" level: Other params than params[:bin][:payload] and params[:bin][:has_password]
I refactored the controllers helper methods into a helpers file (for easier testing).
This pr adds functionality to check the params of "create bin" POST request.
First level: Other params than
params[:bin]
andparams[:retention_time]
are removed. "bin" level: Other params thanparams[:bin][:payload]
andparams[:bin][:has_password]
I refactored the controllers helper methods into a helpers file (for easier testing).