I created a custom endpoint extension, at what path will it show up?

I created a custom endpoint extension, at what path will it show up?

The endpoint extension will create the /<extension-name> path (the extension name as defined in the package.json). Any routers defined in the extension will be a sub-path of this.

Alternatively, you can export a configuration object to be able to customize the root route:

export default {
    id: 'greet',
    handler: (router, countext) => {
        router.get('/', (req, res) => res.send('Hello, World!'));
        router.get('/intro', (req, res) => res.send('Nice to meet you.'));
        router.get('/goodbye', (req, res) => res.send('Goodbye!'));
    },
};

The routes of this endpoint are accessible at /greet, /greet/intro and /greet/goodbye.