Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Registering custom endpoint

default discord avatar
JasmineP2 years ago
1

Hey guys! New to the channel and Payload,


(Obligatory sorry for my English, it's my 3rd language)



I'm trying to create a custom endpoint (

/:event/history/restaurants

) that directs an admin user to a page with historical data over restaurants, in an already existing collection called

Anytime

Issue at hand:

I'm trying to log out the information I'm supposed to get back from my handler function, but am getting not getting the wanted response with information from the log. Am I missing to register the endpoint in the config? We've got another custom endpoint in a different collection that works, but I don't see it registered anywhere which is why I figured I'd turn to you guys 🤞



got it to work 🙃

    Star on GitHub

    Star

    Chat on Discord

    Discord

    online

    Can't find what you're looking for?

    Get dedicated engineering support directly from the Payload team.