match how map follow works
This commit is contained in:
parent
df943f31b9
commit
91f3ec5e0a
1 changed files with 5 additions and 2 deletions
|
@ -165,11 +165,14 @@ class TopicsController < ApplicationController
|
||||||
|
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.json do
|
format.json do
|
||||||
head :ok if follow
|
if follow
|
||||||
|
head :ok
|
||||||
|
else
|
||||||
head :bad_request
|
head :bad_request
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
# POST topics/:id/unfollow
|
# POST topics/:id/unfollow
|
||||||
def unfollow
|
def unfollow
|
||||||
|
|
Loading…
Add table
Reference in a new issue