Skip to content

Commit 10d6b28

Browse files
committed
Merge pull request #37 from edwinlunando/edwin
Change users.json into GET method to make it more RESTful
2 parents b98a560 + 67f82e2 commit 10d6b28

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

users/static/js/user-map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var REMINDER_MODE = 5;
3535
*/
3636
function addUsers(layer) {
3737
$.ajax({
38-
type: 'POST',
38+
type: 'GET',
3939
url: '/users.json',
4040
dataType: 'json',
4141

users/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def map_view():
6464
return render_template('html/index.html', **context)
6565

6666

67-
@APP.route('/users.json', methods=['POST'])
67+
@APP.route('/users.json', methods=['GET'])
6868
def users_view():
6969
"""Return a json document of users who have registered."""
7070
# Create model user

0 commit comments

Comments
 (0)