I have a problem with the domain-driven design architecture. Everything looks nice until I try to use REST. I should use the DTO instead of the entity on the frontend.

My architecture looks like:
[![enter image description here](https://i.stack.imgur.com/U8CdB.jpg)](https://i.stack.imgur.com/U8CdB.jpg)

My question is :

Should I use the ***web module*** and stick to it in the DTO? Is it the correct approach?