Custom Rest Endpoint giving 404 error

I created a custom plugin for confluence 7.13.7 and made two other endpoints. In my local Confluence setup, I can access those endpoints and get the desired result successfully. But, when I installed that plugin in my client’s instance, it gave a 404 error. The client is using the data center version of Confluence. What can be the reason for this?