Actix-web todo-api in this design (what do you think ?)

Please see GitHub - CHA-CHA-CHA-EP1/todo-api-rust

Looks reasonable and extensible to me. At first I thought your directory structure is a little weird, but I assume you designed it with something bigger in mind than just a todo app? Because for a bigger service or monolith it looks like a good way to structure your modules.

Something to keep in mind is how you want to make your server configurable. I usually have a Config struct for that which reads the configuration from the environment or a file and creates the service instances and endpoints. Basically a combination of your main function before you start your server and your controllers::config function.