Skip to content

Commit 79c38fd

Browse files
committed
support "any" request for ContentController
1 parent 8ae6a67 commit 79c38fd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/InspireCms.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,14 +139,14 @@ public function routes(): void
139139
if (Schema::hasTable(InspireCmsConfig::getContentRouteTableName()) && Schema::hasTable('cache')) {
140140

141141
foreach ($this->getContentRoutes() as $index => $item) {
142-
Route::get($item['uri'], ContentController::class)
142+
Route::any($item['uri'], ContentController::class)
143143
->where($item['regex_constraints'] ?? [])
144144
->name($item['alias'] ?? 'content_' . $index);
145145
}
146146
}
147147

148148
// default route
149-
Route::get($factory->getDefaultRoutePattern(), ContentController::class)
149+
Route::any($factory->getDefaultRoutePattern(), ContentController::class)
150150
->where($factory->getDefaultRouteConstraints())
151151
->name('default');
152152
});

0 commit comments

Comments
 (0)