By default, similar to Tornado, Tori Framework uses the normal regular expression for routing. However, this could introduce an error-prone routing table for anyone that does not know the regular expression. Here are the simple versions of routing patterns.
By default, similar to Tornado, Tori Framework uses the normal regular expression for routing. However, this could introduce an error-prone routing table for anyone that does not know the regular expression. Here are the simple versions of routing patterns.
/abc/def/ghi/**
=/abc/def/ghi/(.+)
/abc/def/ghi/*/jkl
=/abc/def/ghi/([^/]+)/jkl
/abc/def/ghi/{key}/jkl
=/abc/def/ghi/(?P<key>.+)/jkl
In addition to the simple routing, the default route for
/favicon.ico
is available if not assigned.