In Dancer2::Core::App::add_route, putting the prefix => option (line 1230) above the attrs that are given by the caller will let the caller override the prefix.
If you attempt to use $self->app->add_route in a plugin's BUILD block, and your application uses prefixes, it'll probably get one, likely the last prefix statement in your load order, and adding prefix => undef to your add_route call doesn't help.
In Dancer2::Core::App::add_route, putting the prefix => option (line 1230) above the attrs that are given by the caller will let the caller override the prefix.
If you attempt to use $self->app->add_route in a plugin's BUILD block, and your application uses prefixes, it'll probably get one, likely the last prefix statement in your load order, and adding prefix => undef to your add_route call doesn't help.