(self, route, action)
| 210 | return routes |
| 211 | |
| 212 | def _get_dynamic_route(self, route, action): |
| 213 | initkwargs = route.initkwargs.copy() |
| 214 | initkwargs.update(action.kwargs) |
| 215 | |
| 216 | url_path = escape_curly_brackets(action.url_path) |
| 217 | |
| 218 | return Route( |
| 219 | url=route.url.replace('{url_path}', url_path), |
| 220 | mapping=action.mapping, |
| 221 | name=route.name.replace('{url_name}', action.url_name), |
| 222 | detail=route.detail, |
| 223 | initkwargs=initkwargs, |
| 224 | ) |
| 225 | |
| 226 | def get_method_map(self, viewset, method_map): |
| 227 | """ |
no test coverage detected