change json contract

This commit is contained in:
João Victor Geonizeli
2022-02-28 12:40:17 -03:00
parent bf3253dc9e
commit aa0e1ac1c7
4 changed files with 14 additions and 4 deletions

View File

@@ -0,0 +1,3 @@
json.extract! user, :id, :username
json.url user_url(user, format: :json)