Make insert_routes! nicer to use. This won't really break anything, but it will produce warnings if imported variants from Method were only used when calling the macro.
Make the path segment before the method optional. Makes it possible to replace "/" => Get: my_handler with just Get: my_handler.
HTTP methods are implicitly imported within the macro (but not within handlers). They are the only accepted input, anyway.
Allow one or more trailing commas, to make the syntax more tolerant towards situations like where the last handler was removed, but the preceding comma was left behind.
Make
insert_routes!
nicer to use. This won't really break anything, but it will produce warnings if imported variants fromMethod
were only used when calling the macro."/" => Get: my_handler
with justGet: my_handler
.