Can periods be used in Asp.Net Web Api Routes?

后端 未结 5 387
说谎
说谎 2020-12-03 05:15

I\'m working on moving an API project from raw http handlers where I\'m using periods in the paths:

http://server/collection/id.format

I wo

5条回答
  •  不思量自难忘°
    2020-12-03 05:56

    I was able to achieve this by doing the following: replace "*." with "*" in system.webServer.handlers in web.config, i.e. remove the period.

    
    

提交回复
热议问题