Registering custom endpoint

default discord avatar
6 months ago

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 (


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


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 🙃

    Open the post
    Continue the discussion in Discord
    Like what we're doing?
    Star us on GitHub!


    Connect with the Payload Community on Discord



    Can't find what you're looking for?

    Get help straight from the Payload team with an Enterprise License.