Hello I’m new with working in Strapi, I’m trying to show my enumeration value list in the front-end of my website. I googled all day but I cant find how to do this, internet says I have to call a enumeration api, but that is not possible in strapi right? I really dont know what to do. I use strapi with React.
This topic has been created from a Discord post (1240879944092090449) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord
you can’t really, do that, by default
if you use typescript they will be avalible as types
what you need to do is customize controller a bit
No, it inside the user and then the collection types
and how do you get your enums?
What I want is a list with business sectors for example
- it
- Marketing
- backend
- frontend
And you choose one
it is a emun inside the user
well you want to get data from api still
because i make now a sign up page and people have to choose there business sector etc
on the internet says you need an api but i dont want that. i just want the data inside the enum
what is the best way to do this?
look, you want to get this enums, but for that you need to modify a data returned by route