add head method to dsl
This commit is contained in:
parent
ccac1cf651
commit
50dfd25450
1 changed files with 2 additions and 2 deletions
|
@ -6,8 +6,8 @@
|
||||||
# - WebSocket(ws)
|
# - WebSocket(ws)
|
||||||
# - before_*
|
# - before_*
|
||||||
# - error
|
# - error
|
||||||
HTTP_METHODS = %w(get post put patch delete options)
|
HTTP_METHODS = %w(get post put patch delete options head)
|
||||||
FILTER_METHODS = %w(get post put patch delete options all)
|
FILTER_METHODS = %w(get post put patch delete options head all)
|
||||||
|
|
||||||
{% for method in HTTP_METHODS %}
|
{% for method in HTTP_METHODS %}
|
||||||
def {{method.id}}(path : String, &block : HTTP::Server::Context -> _)
|
def {{method.id}}(path : String, &block : HTTP::Server::Context -> _)
|
||||||
|
|
Loading…
Reference in a new issue