Closed TheBatmanofButler closed 10 years ago
right now the POST
method is not allowed for the /users/me
route, in app/routes/admin/users.py
.
The decorator
@users.route('/users/me', methods=['GET'])
should read
@users.route('/users/me', methods=['GET', 'POST'])
and then it should perform the exact same actions as a POST to /users/<user_id>
see further down:
@users.route('/user/<slug>', methods=['GET', 'POST'])
Ideally, /users/me
should just be an alias for the current user. If you think that it's not a good feature to have, you could set /users/me
to redirect to /users/<my_user_id>
where <my_user_id>
is the Id of the current user. How you solve this can be up to you.
Using user/me to create a new user returns a POST error