File tree Expand file tree Collapse file tree 4 files changed +29
-6
lines changed Expand file tree Collapse file tree 4 files changed +29
-6
lines changed File renamed without changes.
Original file line number Diff line number Diff line change 1+ /vendor
2+ .env
Original file line number Diff line number Diff line change 1+ <IfModule mod_rewrite.c >
2+ <IfModule mod_negotiation.c >
3+ Options -MultiViews -Indexes
4+ </IfModule >
5+
6+ RewriteEngine On
7+
8+ # Handle Authorization Header
9+ RewriteCond %{HTTP:Authorization} .
10+ RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization }]
11+
12+ # Redirect Trailing Slashes If Not A Folder...
13+ RewriteCond %{REQUEST_FILENAME} !-d
14+ RewriteCond %{REQUEST_URI} (.+)/$
15+ RewriteRule ^ %1 [L,R=301 ]
16+
17+ # Send Requests To Front Controller...
18+ RewriteCond %{REQUEST_FILENAME} !-d
19+ RewriteCond %{REQUEST_FILENAME} !-f
20+ RewriteRule ^ index.php [L]
21+ </IfModule >
Original file line number Diff line number Diff line change 22
33use App \Application ;
44use App \Routing \Route ;
5- use App \Controllers \EmojiController ;
5+ use App \Controllers \UserController ;
66
77require __DIR__ . '/../vendor/autoload.php ' ;
88
1111
1212$ app = new Application ();
1313
14- Route::get ('/users ' , [EmojiController ::class, 'index ' ]);
15- Route::get ('/users/{id} ' , [EmojiController ::class, 'show ' ]);
16- Route::post ('/users ' , [EmojiController ::class, 'store ' ]);
17- Route::put ('/users/{id} ' , [EmojiController ::class, 'update ' ]);
18- Route::delete ('/users/{id} ' , [EmojiController ::class, 'destroy ' ]);
14+ Route::get ('/users ' , [UserController ::class, 'index ' ]);
15+ Route::get ('/users/{id} ' , [UserController ::class, 'show ' ]);
16+ Route::post ('/users ' , [UserController ::class, 'store ' ]);
17+ Route::put ('/users/{id} ' , [UserController ::class, 'update ' ]);
18+ Route::delete ('/users/{id} ' , [UserController ::class, 'destroy ' ]);
1919
2020$ app ->run ();
You can’t perform that action at this time.
0 commit comments