Skip to content

Commit b5509b5

Browse files
committed
improve: making area route path flexible instead of hard coded
1 parent a22fc26 commit b5509b5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/Endpoint/EndpointRouteBuilder.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ public function mapControllers(?string $area = null, ?Closure $configure = null)
132132
if ($attribute) {
133133
$route = $attribute[0]->newInstance();
134134
$path = $route->Path;
135-
if ($area) {
136-
$path = '/' . $area . $route->Path;
137-
}
138135
$this->builder->map($path, new ControllerRouteHandler([$className, $method->getName()], $options), $route->Method);
139136
}
140137
}

0 commit comments

Comments
 (0)