custom http api endpoint

Hello. I am following some of the documents for custom http api endpoint. 8 gave an 'api foobar' defined in the main.wasp but when I try to import foobar from 'wasp/server/api' in the api ts file it says 'no export member 'foobar'' .

Am I missing something?
Was this page helpful?