mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Find friends uses GET.
This commit is contained in:
parent
48ebe5ce84
commit
047b82b95f
2 changed files with 6 additions and 2 deletions
|
@ -1175,7 +1175,7 @@ def ignore_follower(request):
|
|||
return {'code': code}
|
||||
|
||||
|
||||
@required_params('query')
|
||||
@required_params('query', method="GET")
|
||||
@json.json_view
|
||||
def find_friends(request):
|
||||
query = request.GET['query']
|
||||
|
|
|
@ -94,4 +94,8 @@ class required_params(object):
|
|||
return HttpResponse(json.encode({
|
||||
'message': message,
|
||||
'code': -1,
|
||||
}), content_type="application/json", status=status_code)
|
||||
<<<<<<< Updated upstream
|
||||
}), content_type="application/json", status=status_code)
|
||||
=======
|
||||
}), mimetype="application/json", status=status_code)
|
||||
>>>>>>> Stashed changes
|
||||
|
|
Loading…
Add table
Reference in a new issue