def __handle_action(url):
# url e.g: /api/user/123/action
arg = None
if len(url.split('/')) >= 5: # indicate that has an id between endpoint and action_name
arg = http.param_at(url, -2)
return Action(url, arg, bottle_req).process_action()
评论列表
文章目录