I have created a slim api. It fetches the db items and displays it. Now how do i include it in a html page? This is the api route
$app->get('/login/user_table(/:username)', function($username) use ($app){
user_table_view($username);
});
This is the html page where i want to insert the api.
<div class = "view">
<-- I want the api to be displayed here -->
</div>