Cache http routes

This commit is contained in:
Serdar Dogruyol 2018-09-16 13:17:51 +03:00
parent e59cd646cd
commit 8fb028149b
2 changed files with 15 additions and 3 deletions

View file

@ -83,5 +83,6 @@ end
Spec.after_each do
Kemal.config.clear
Kemal::RouteHandler::INSTANCE.routes = Radix::Tree(Route).new
Kemal::RouteHandler::INSTANCE.cached_routes = Hash(String, Radix::Result(Route)).new
Kemal::WebSocketHandler::INSTANCE.routes = Radix::Tree(WebSocket).new
end