summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2022-06-11 15:27:59 +0530
committerAndinus <andinus@nand.sh>2022-06-11 15:27:59 +0530
commit332862889f5add755012467d1a6303a7e2127bfa (patch)
tree5fd1fcf979829e0bdfd359e7ee63db885ea59dc4
parent3e8364c123f9e54e17540c9fbe5cdcc072355079 (diff)
downloadcrater-332862889f5add755012467d1a6303a7e2127bfa.tar.gz
Update allowed methods
-rw-r--r--lib/Crater/Service.rakumod1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Crater/Service.rakumod b/lib/Crater/Service.rakumod
index 657d77b..1119e5b 100644
--- a/lib/Crater/Service.rakumod
+++ b/lib/Crater/Service.rakumod
@@ -27,6 +27,7 @@ sub MAIN(
 
     my Cro::Service $http = Cro::HTTP::Server.new(
         http => <1.1>,
+        allowed-methods => <GET POST>,
         host => %conf<server><host> || die("host not set"),
         port => %conf<server><port> || die("port not set"),
         application => routes(:$password, :$gallery),