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
1 changed files with 1 additions and 1 deletions

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