CRUD API ready

This commit is contained in:
Senad Uka
2019-06-21 20:01:43 +02:00
parent 877f0425d0
commit 0357df32a7
8 changed files with 36 additions and 8 deletions

View File

@@ -0,0 +1,9 @@
module Response
def error_response(status)
render nothing: true, status: status
end
def json_response(object, status = :ok)
render json: object, status: status
end
end