Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
rajkumardusad authored Dec 22, 2022
1 parent 86d84c4 commit fd7b314
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@
// Set public path
$app->static('/', base_path('public'));

// Set view path
$app->set('views', base_path('views'));

$app->get('/', function($req, $res) {
$res->send('Hello, World!');
$res->render('index.html');
});

$app->get('/api', function($req, $res) {
Expand Down

0 comments on commit fd7b314

Please sign in to comment.