How to create a new CarrierService in an app with Remix and have the callback URL within the project

Hello, I’m new to developing apps on Shopify.

I’m currently working on an application to integrate a new shipping service. I followed the documentation: https://shopify.dev/docs/api/admin-rest/2024-04/resources/carrierservice#create-2020-07 which requests a public URL for the callback URL.

My question is, is it possible for that callback to be within the Remix project itself, so that it can access the database, etc.?

I hope I explained myself well. My project is currently in development using Cloudflare. I look forward to your response.