How to call api url declared in server of plugin from component in plugin in kibana 7.8 OSS version?

I am developing a plugin in 7.8 kibana oss version
When I define route in routes in server folder of plugin
then how to call from component in public in plugin?

Use core.http.post with the API path