Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling the GetBlogPost endpoint from the admin #2

Open
mcnaveen opened this issue Jun 27, 2023 · 2 comments
Open

Calling the GetBlogPost endpoint from the admin #2

mcnaveen opened this issue Jun 27, 2023 · 2 comments

Comments

@mcnaveen
Copy link

I was able to add the blog post and category by adding the below code in the hooks. But I can't able to retrieve it. Since it's not under useAdminEntity. I can't do it. Any ideas?

const {
  useAdminEntity: useAdminBlogPostState,
  useAdminUpdateMutation: useAdminUpdateBlogPostStateMutation,
} = createCustomAdminHooks("blog/posts", "blog_post");

const {
  useAdminEntity: useAdminBlogCategoryState,
  useAdminUpdateMutation: useAdminUpdateBlogCategoryStateMutation,
} = createCustomAdminHooks("blogcategory", "blog_category");
@pevey
Copy link
Owner

pevey commented Jun 27, 2023

I'm still playing around with the beta and trying to get createCustomAdminHook to work properly. :)

@mcnaveen
Copy link
Author

Cool. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants