```php
<?php

require_once '../../core/api_bootstrap.php';

$data = Request::get();

try {

$db = new Database();
$conn = $db->connect();

$query="

SELECT
id,
name,
slug,
meta_title,
meta_description,
image,
status,
created_at

FROM blog_categories

ORDER BY id DESC

";

$stmt=$conn->prepare($query);
$stmt->execute();

$categories=$stmt->fetchAll();

Response::success($categories);

}
catch(Exception $e){

Logger::log("system.log",$e->getMessage());
Response::error("Server error",500);

}