tresko32
tresko32
NNuxt
Created by tresko32 on 6/12/2024 in #❓・help
Add routes at runtime
Is it possible to add new routes at the runtime asynchronously? Before ˙˙v3.12.1˙˙ I added them in the plugin with useRouter().addRoute(route), but now it doesn't work anymore. I always get 404 because routes are inserted too late and routes are not matched.
2 replies