Revision d9fca80b snf-astakos-app/astakos/api/projects.py

b/snf-astakos-app/astakos/api/projects.py
329 329
    method = request.method
330 330
    if method == "GET":
331 331
        return get_project(request, project_id)
332
    if method == "POST":
332
    if method == "PUT":
333 333
        return modify_project(request, project_id)
334
    return api.api_method_not_allowed(request, allowed_methods=['GET', 'POST'])
334
    return api.api_method_not_allowed(request, allowed_methods=['GET', 'PUT'])
335 335

  
336 336

  
337 337
@api.api_method(http_method="GET", token_required=True, user_required=False)
......
352 352
    return project
353 353

  
354 354

  
355
@api.api_method(http_method="POST", token_required=True, user_required=False)
355
@api.api_method(http_method="PUT", token_required=True, user_required=False)
356 356
@user_from_token
357 357
@transaction.commit_on_success
358 358
def modify_project(request, project_id):

Also available in: Unified diff