[Framework] how to create a custom api?

I want to get the server time in my md file, so I need a custom API. How can I create it? Can you give me some examples? The examples I found online don’t work, probably because they are outdated.

I am a beginner, so the simpler the examples, the better. Thank you very much

Framework creates static files that are able to call any api endpoint, but it has no capabilities to create a file that runs server-side. So, you would have to create that server/api endpoint independently of Framework.

Do you mean that I need to integrate a framework (such as Express.js) to implement API calls?

1 Like