Api to get the value from strapi plugin

How to create an api endpoint to get the value from input field from my custom plugin in strapi.

This topic has been created from a Discord post (1255064559362900049) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

create a controller and a route.