Merge pull request #112 from Krule/master

Add options to the DSL
This commit is contained in:
Serdar Dogruyol 2016-02-25 20:46:16 +02:00
commit 0a55b2d28a

View file

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