routing: remove HEAD from HTTP methods

Kemal automatically creates an associated HEAD route for all GET routes
このコミットが含まれているのは:
Samantaz Fox 2022-08-09 23:39:53 +02:00
コミット c23ad25899
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: F42821059186176E
1個のファイルの変更1行の追加1行の削除

ファイルの表示

@ -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|