We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ae6a67 commit 79c38fdCopy full SHA for 79c38fd
1 file changed
src/InspireCms.php
@@ -139,14 +139,14 @@ public function routes(): void
139
if (Schema::hasTable(InspireCmsConfig::getContentRouteTableName()) && Schema::hasTable('cache')) {
140
141
foreach ($this->getContentRoutes() as $index => $item) {
142
- Route::get($item['uri'], ContentController::class)
+ Route::any($item['uri'], ContentController::class)
143
->where($item['regex_constraints'] ?? [])
144
->name($item['alias'] ?? 'content_' . $index);
145
}
146
147
148
// default route
149
- Route::get($factory->getDefaultRoutePattern(), ContentController::class)
+ Route::any($factory->getDefaultRoutePattern(), ContentController::class)
150
->where($factory->getDefaultRouteConstraints())
151
->name('default');
152
});
0 commit comments