@minhtri I thought you were trying to access the content types from the backend.
But as you described you are trying to access this information from the frontend.
Doing that you would have to make an API call, from the frontend.
Have you figured it out? Or do you still need some guidance?