Protected Routes
if($auth->routes()){
// Protect routes must be in this if statment
$router->get("/protected-route",function(){
echo "You've just accessed the protected route";
})
}Access Protected Route with Token
Headers
Name
Type
Description
{
"status":200,
"message:"Succefully retrieved data",
"data":[..]
}Last updated