Commit db3d76bb authored by Siebers, Michael's avatar Siebers, Michael
Browse files

Merge branch '60-api-reacts-to-wrong-methods' into 'master'

Restrict /bg/clear to POST requests

Closes #60

See merge request cogsys/dare2del/demonstrator!25
parents e3e73c0c 2d765337
......@@ -63,7 +63,7 @@ http:location(js, doc(js), [ priority(100) ]).
:- http_handler(root(bg/add), set_bg, [method(post)]).
:- http_handler(root(bg/show), get_bg, [method(get)]).
:- http_handler(root(bg/remove), clear_bg, [method(post)]).
:- http_handler(root(bg/clear), clear_all_bg, []).
:- http_handler(root(bg/clear), clear_all_bg, [method(post)]).
/* Handlers for irr & explanation */
:- http_handler(root(irrelevant/file), handle_irrelevant(file), [method(post)]).
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment