refactor: enhance blog functionality with related blogs fetching, improved loading states, and tag filtering
This commit is contained in:
@@ -104,4 +104,23 @@ export const request = {
|
||||
Authorization: "",
|
||||
},
|
||||
}),
|
||||
getBlogTags: (params) =>
|
||||
api.get("api/v1/categorys/tag", {
|
||||
params,
|
||||
headers: {
|
||||
Authorization: "",
|
||||
},
|
||||
}),
|
||||
getTopBlogs: () =>
|
||||
api.get("api/v1/blogs/top", {
|
||||
headers: {
|
||||
Authorization: "",
|
||||
},
|
||||
}),
|
||||
getSingleBlog: (uuid) =>
|
||||
api.get(`api/v1/blog/${uuid}`, {
|
||||
headers: {
|
||||
Authorization: "",
|
||||
},
|
||||
}),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user