backend: use named routes in url_for
This commit is contained in:
parent
5ce96a0087
commit
84cbc5dd30
@ -23,7 +23,7 @@ sub list ($self)
|
||||
my @tags = map +{
|
||||
name => $_->{name},
|
||||
count => $_->{count},
|
||||
uri => $self->url_for("/tag/$_->{name}"),
|
||||
uri => $self->url_for("tag_show", tag_id_or_name => $_->{name}),
|
||||
}, @{$res->json->{tags}};
|
||||
|
||||
return $self->render(
|
||||
|
Loading…
Reference in New Issue
Block a user