比如下面的2个 asp.net core minimal api endpoint,如何将 xml 与 gz 传递给 ext 参数?
app.MapGet("/sitemap.xml", (string ext) => { });
app.MapGet("/sitemap.xml.gz", (string ext) => { });
目前只找到通过正则实现的方法
app.MapGet("/sitemap.{ext:regex(^xml$)}", (string ext) => { });
app.MapGet("/sitemap.xml.{ext:regex(^gz$)}", (string ext) => { });