not using handlers declared with routing macro should be detectable #2696
Labels
A-codegen
project: actix-web-codegen
C-improvement
Category: an improvement to existing functionality
good-first-issue
easy to pick up for newcomers
Milestone
Hello,
I've been using actix-web for a while and it's working very well! There is one little thing that's been bothering me, though.
When I write services with actix-web I really like to use the macros for specifying method and path, as in the example below:
I think it's great to have the path and method next to the implementation of the endpoint. However, nearly every time I add a new endpoint I forget to add the
service
to the app in when setting up the server, leading to a confused developer and a 404 when testing it out :)I am not experienced enough with Rust's macro system to know if it's actually possible to do, but it would really be great if just using the macro could somehow add the service.
The text was updated successfully, but these errors were encountered: