mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Cache http routes
This commit is contained in:
parent
e59cd646cd
commit
8fb028149b
2 changed files with 15 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue