Commit 2d765337 authored by Siebers, Michael's avatar Siebers, Michael
Browse files

restrict /bg/clear to POST requests

parent e3e73c0c
......@@ -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