mirror of
				https://gitea.invidious.io/iv-org/shard-kemal.git
				synced 2024-08-15 00:53:36 +00:00 
			
		
		
		
	Add options to the DSL
As in https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.2 and because it's a nice way to document API
This commit is contained in:
		
							parent
							
								
									6929a1b8a9
								
							
						
					
					
						commit
						6759fb2373
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -1,4 +1,4 @@ | |||
| HTTP_METHODS = %w(get post put patch delete) | ||||
| HTTP_METHODS = %w(get post put patch delete options) | ||||
| 
 | ||||
| {% for method in HTTP_METHODS %} | ||||
|   def {{method.id}}(path, &block : HTTP::Server::Context -> _) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue