add some web apis and update the route matching