我是第一次使用WebApi2.0和OWIN中间件构建RESTful Web服务,它使用Refresh令牌进行令牌身份验证。现在,我的最初计划是指定over路由,比如在Controller中:public class CustomersController比如设置TokenEndpointPath = new PathString("/{dbid:length(2)}/token"
因此,我已经设置了一个Web,并且运行得很好,但是现在我正在尝试建立自己的管理面板(我已经做了),我需要使用来自Web的DeleteUser()函数,名为AdminApi,但我似乎无法让它工作。在给出API应该在的路径时,我一直得到404错误。public static class WebApiConfig public static void Register(HttpConfiguration config) // Web API configuration and services