Skip to content

Commit 22b9c0d

Browse files
committed
made changes
1 parent 85869b0 commit 22b9c0d

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

Controller/Index.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

Library/Router.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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';

app.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,8 @@
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();

0 commit comments

Comments
 (0)