diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2022-08-09 23:39:53 +0200 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2022-08-09 23:39:53 +0200 |
| commit | c23ad25899152c4837777dbc983809f436f7062a (patch) | |
| tree | a765fc581138f71b275513d386ed272bd0eb896f | |
| parent | 9cc041876944dde46cd8cc3e269995244c8e7724 (diff) | |
| download | invidious-c23ad25899152c4837777dbc983809f436f7062a.tar.gz invidious-c23ad25899152c4837777dbc983809f436f7062a.tar.bz2 invidious-c23ad25899152c4837777dbc983809f436f7062a.zip | |
routing: remove HEAD from HTTP methods
Kemal automatically creates an associated HEAD route for all GET routes
| -rw-r--r-- | src/invidious/routing.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/routing.cr b/src/invidious/routing.cr index bd72c577..9e95f7db 100644 --- a/src/invidious/routing.cr +++ b/src/invidious/routing.cr @@ -1,5 +1,5 @@ module Invidious::Routing - {% for http_method in {"get", "post", "delete", "options", "patch", "put", "head"} %} + {% for http_method in {"get", "post", "delete", "options", "patch", "put"} %} macro {{http_method.id}}(path, controller, method = :handle) {{http_method.id}} \{{ path }} do |env| |
