mirror of
				https://github.com/iv-org/invidious.git
				synced 2025-11-04 06:31:57 +00:00 
			
		
		
		
	routing: remove HEAD from HTTP methods
Kemal automatically creates an associated HEAD route for all GET routes
This commit is contained in:
		@@ -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|
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user