Creating a custom /upload endpoint in my controller

Hi jees47,

This code is being placed in my /src/api/offerte/01-custom-offerte.js:

module.exports = {
    routes: [
		{
            method: 'POST',
            path: '/offertes/upload/:uuid',
            handler: 'offerte.uploadSignedOfferte',
            config: {
                controllers: [
                    "api::offerte.offerte"
                ]
            }
        }
    ]
}

The uploadSignedOfferte function is placed in my /src/api/offerte/controller.js