statamic / ssg

The official Statamic Static Site Generator
234 stars 24 forks source link

Automatically register Statamic routes #48

Closed jasonvarga closed 3 years ago

jasonvarga commented 3 years ago

Any Route::statamic() routes being used in your application will automatically be registered. You will no longer need to manually add them to the config file.

Only routes without wildcards will be automatically registered. If there's a wildcard, we can't know all the possibilities there will be.

Route::statamic('/foo/bar'); // will be registered
Route::statamic('/foo/{bar}'); // will not

Closes #13