```php
<?php

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

$data=Request::get();

try {

Validator::required($data,['slug']);

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

$query="

SELECT *

FROM blog_categories

WHERE slug=:slug
AND status=1

LIMIT 1

";

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

$stmt->execute([

':slug'=>$data['slug']

]);

$category=$stmt->fetch();

Response::success($category);

}
catch(Exception $e){

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

}