Created individual categories page
Signed-off-by: rodude123 <rodude123@gmail.com>
This commit is contained in:
@@ -31,7 +31,7 @@ class timelineData
|
||||
}
|
||||
return array("errorMessage" => "Error, edu data not found");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Get all work data
|
||||
* @return array - Array of all work data or error message
|
||||
@@ -178,7 +178,7 @@ class timelineData
|
||||
|
||||
return "error";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Create new education data
|
||||
* @param string $dateFrom - Start date
|
||||
@@ -202,7 +202,7 @@ class timelineData
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Create new work data
|
||||
* @param string $dateFrom - Start date
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
namespace api\timeline;
|
||||
require_once __DIR__ . "/../utils/routesInterface.php";
|
||||
require_once "timelineData.php";
|
||||
@@ -39,7 +40,7 @@ class timelineRoutes implements routesInterface
|
||||
return $response;
|
||||
}
|
||||
|
||||
if($args["timeline"] == "work")
|
||||
if ($args["timeline"] == "work")
|
||||
{
|
||||
$response->getBody()->write(json_encode($this->timelineData->getWorkData()));
|
||||
return $response;
|
||||
|
||||
Reference in New Issue
Block a user