backend: use named routes in url_for

This commit is contained in:
Lucas 2023-03-17 20:52:49 +00:00
parent 5ce96a0087
commit 84cbc5dd30

View File

@ -23,7 +23,7 @@ sub list ($self)
my @tags = map +{ my @tags = map +{
name => $_->{name}, name => $_->{name},
count => $_->{count}, count => $_->{count},
uri => $self->url_for("/tag/$_->{name}"), uri => $self->url_for("tag_show", tag_id_or_name => $_->{name}),
}, @{$res->json->{tags}}; }, @{$res->json->{tags}};
return $self->render( return $self->render(