File tree Expand file tree Collapse file tree 2 files changed +23
-0
lines changed
src/JoinRpg.Portal/Areas/Admin Expand file tree Collapse file tree 2 files changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ using JoinRpg . Portal . Infrastructure . Authorization ;
2+ using Microsoft . AspNetCore . Mvc ;
3+ using Microsoft . Extensions . Configuration ;
4+
5+ namespace JoinRpg . Portal . Areas . Admin . Controllers
6+ {
7+ [ AdminAuthorize ]
8+ [ Area ( "Admin" ) ]
9+ public class DumpConfigController : Controller
10+ {
11+ private readonly IConfiguration configuration ;
12+
13+ public DumpConfigController ( IConfiguration configuration )
14+ => this . configuration = configuration ;
15+
16+ public IActionResult Index ( )
17+ {
18+ var config = ( configuration as IConfigurationRoot ) . GetDebugView ( ) ;
19+ return Content ( config ) ;
20+ }
21+ }
22+ }
Original file line number Diff line number Diff line change 55<ul >
66 <li ><a asp-controller =" ProjectList" >Список активных игр</a ></li >
77 <li >@Html.ActionLink( "Проблемные проекты", "StaleGames", "AdminHome") </li >
8+ <li ><a asp-controller =" DumpConfig" >Конфигурация (для отладки)</a ></li >
89</ul >
You can’t perform that action at this time.
0 commit comments