mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Format with 0.24.1 formatter
This commit is contained in:
parent
4034dab952
commit
159e963404
3 changed files with 7 additions and 7 deletions
|
@ -6,7 +6,7 @@ module Kemal
|
|||
URL_ENCODED_FORM = "application/x-www-form-urlencoded"
|
||||
APPLICATION_JSON = "application/json"
|
||||
MULTIPART_FORM = "multipart/form-data"
|
||||
PARTS = %w(url query body json)
|
||||
PARTS = %w(url query body json)
|
||||
# :nodoc:
|
||||
alias AllParamTypes = Nil | String | Int64 | Float64 | Bool | Hash(String, JSON::Type) | Array(JSON::Type)
|
||||
getter files
|
||||
|
|
|
@ -20,7 +20,7 @@ module Kemal
|
|||
# a corresponding `HEAD` route.
|
||||
def add_route(method : String, path : String, &handler : HTTP::Server::Context -> _)
|
||||
add_to_radix_tree method, path, Route.new(method, path, &handler)
|
||||
add_to_radix_tree("HEAD", path, Route.new("HEAD", path) {}) if method == "GET"
|
||||
add_to_radix_tree("HEAD", path, Route.new("HEAD", path) { }) if method == "GET"
|
||||
end
|
||||
|
||||
# Check if a route is defined and returns the lookup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue