add new files
This commit is contained in:
7
app/views/api/auth/login.json.jbuilder
Normal file
7
app/views/api/auth/login.json.jbuilder
Normal file
@@ -0,0 +1,7 @@
|
||||
if @out[0] == true
|
||||
json.set! :status, @out[0]
|
||||
json.set! :data, @out[1]
|
||||
else
|
||||
json.set! :status, @out[0]
|
||||
json.set! :message,@out[1]
|
||||
end
|
||||
7
app/views/api/auth/logout.json.jbuilder
Normal file
7
app/views/api/auth/logout.json.jbuilder
Normal file
@@ -0,0 +1,7 @@
|
||||
if (@user)
|
||||
json.status true
|
||||
json.extract! @user, :id
|
||||
else
|
||||
json.status false
|
||||
json.message "Logout Failed."
|
||||
end
|
||||
Reference in New Issue
Block a user