"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query"),utils_1=require("../utils");exports.metadata={summary:"Retrieves detailed information of a specific tag by ID",operationId:"getTagById",tags:["Admin","Content","Category"],parameters:[{index:0,name:"id",in:"path",required:!0,description:"ID of the tag to retrieve",schema:{type:"string"}}],responses:{200:{description:"Tag details",content:{"application/json":{schema:{type:"object",properties:utils_1.baseTagSchema}}}},401:query_1.unauthorizedResponse,404:(0,query_1.notFoundMetadataResponse)("Tag"),500:query_1.serverErrorResponse},permission:"view.blog.tag",requiresAuth:!0,logModule:"ADMIN_BLOG",logTitle:"Get tag by ID"};exports.default=async e=>{const{params:t,ctx:s}=e;null==s||s.step("Validating tag ID");null==s||s.step("Fetching tag");const a=await(0,query_1.getRecord)("tag",t.id);null==s||s.success("Tag retrieved successfully");return a};