File tree Expand file tree Collapse file tree 3 files changed +3
-14
lines changed
Expand file tree Collapse file tree 3 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ class Index extends BaseController
66{
77 public static function get ()
88 {
9+ // json('id', 200);
10+ // xml('id', 200);
911 render ('index.php ' , array ('title ' => 'Index Page ' ));
1012 }
1113}
Original file line number Diff line number Diff line change @@ -114,7 +114,6 @@ public function submit(): void
114114 require_once __DIR__ . '/../Library/Response.php ' ;
115115 http_response_code (404 );
116116 render ('../defaults/404.php ' , array ('title ' => '404 Not Found ' , 'route ' => $ _SERVER ['REQUEST_URI ' ]));
117- print_r ($ this ->uriList );
118117 }
119118 } else {
120119 require_once __DIR__ . '/../Library/Response.php ' ;
Original file line number Diff line number Diff line change 66 * Defines routes below
77 */
88
9- $ route ->get ('/src ' , function () {
9+ $ route ->get ('' , function () {
1010 Index::get ();
1111});
1212
13- $ route ->get ('/src/user ' , function () {
14- User::get ();
15- });
16-
17- $ route ->post ('/src/user ' , function () {
18- User::post ();
19- });
20-
21- $ route ->get ('/src/user/<int:id>/<int:name>/<string : aj> ' , function () {
22- User::get ();
23- });
24-
2513$ route ->submit ();
You can’t perform that action at this time.
0 commit comments