routing: remove HEAD from HTTP methods

Kemal automatically creates an associated HEAD route for all GET routes
pull/3261/head
Samantaz Fox 2022-08-09 23:39:53 +02:00
rodzic 9cc0418769
commit c23ad25899
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: F42821059186176E
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1,5 +1,5 @@
module Invidious::Routing 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) macro {{http_method.id}}(path, controller, method = :handle)
{{http_method.id}} \{{ path }} do |env| {{http_method.id}} \{{ path }} do |env|