我正在从事 Asp.net web api 项目。我最近使用config.Services.GetApiExplorer();
什么是在生产中隐藏此端点并仍然使其可供我团队中的所有其他开发人员使用的最佳方法。
我能想到的一种方法是使用注册路线
#if debug
routes.MapRoute(
"documentation",
"documentation/help",
new { controller = "apiexplorer", action
= "Index" }
);
#endif
富国沪深
偶然的你
千巷猫影
随时随地看视频慕课网APP
相关分类