How to tune the visibility of paths of an API?

Given an API with two endpoints /operation and /health, it’s possible to expose the /operation endpoint to the public and /health only to the intranet? I didn’t found documentation/examples for that.