|
From: | vimacs |
Subject: | [Artanis] Which handler will be used when a path matches multiple handlers? |
Date: | Mon, 12 Mar 2018 10:38:29 +0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
Hello, When I write multiple handlers like: (get "/hello/:who" ...) (get "/.*" ...) Then which handler will be used when I visit http://host:port/hello/world? From my testing, the second handler is used no matter which handler I write first. What is the rule of priority of the handlers? Thanks
[Prev in Thread] | Current Thread | [Next in Thread] |