mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
routing: remove HEAD from HTTP methods
Kemal automatically creates an associated HEAD route for all GET routes
This commit is contained in:
parent
9cc0418769
commit
c23ad25899
1 changed files with 1 additions and 1 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue