← 返回 atlassian 的题目列表Design a URL Router Component
类型:online_judge
Design a URL Router component with two APIs: 1. put(url, func_name) to register func_name under the specified url; 2. get(url) to return the func_name corresponding to the specified url. The router must support wildcards.
Example
Input
put('/home', 'home_func')
get('/home')