mirror of
https://gitea.invidious.io/iv-org/shard-kemal.git
synced 2024-08-15 00:53:36 +00:00
Make Route a Struct
This commit is contained in:
parent
ce024ba748
commit
0724e07c22
2 changed files with 10 additions and 1 deletions
|
@ -2,7 +2,7 @@ module Kemal
|
|||
# Route is the main building block of Kemal.
|
||||
# It takes 3 parameters: Method, path and a block to specify
|
||||
# what action to be done if the route is matched.
|
||||
class Route
|
||||
struct Route
|
||||
getter method, path, handler
|
||||
@handler : HTTP::Server::Context -> String
|
||||
@method : String
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue