Skip to content

Commit

Permalink
feat(domain): change route address
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamadreza1388 committed Sep 11, 2024
1 parent 6972a53 commit 213bad1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,18 @@
}

if (substr(FLight::request()->host, 0, 18) === "admin.salamlang.ir"){
Flight::group('*', function () {
Flight::group('/', function () {

Flight::route('GET /', [new HomeController, 'index']);
Flight::route('GET ', [new HomeController, 'index']);

Flight::group('/users', function () {
Flight::group('users', function () {
Flight::route('GET /', [new UserController, 'index']);
Flight::route('GET /delete/@id', [new UserController, 'destroy']);
Flight::route('GET /edit/@id', [new UserController, 'edit']);
Flight::route('POST /update', [new UserController, 'update']);
});

Flight::group('/codes', function () {
Flight::group('codes', function () {
Flight::route('GET /', [new CodeController, 'index']);
Flight::route('GET /show/@id', [new CodeController, 'show']);
});
Expand Down

0 comments on commit 213bad1

Please sign in to comment.