Browse Source

proxy: moved /grafik to /kurz

vs-deploy-test-hack
Vašek Šraier 4 years ago
parent
commit
bdce8e4518
  1. 2
      server/Ksp.WebServer/Controllers/GrafikPageController.cs
  2. 2
      server/Ksp.WebServer/KspPageRewriter.cs

2
server/Ksp.WebServer/Controllers/GrafikPageController.cs

@ -16,7 +16,7 @@ using Microsoft.Extensions.Options;
namespace Ksp.WebServer.Controllers namespace Ksp.WebServer.Controllers
{ {
[ApiController] [ApiController]
[Route("grafik")] [Route("kurz")]
public class GrafikPageController : ControllerBase public class GrafikPageController : ControllerBase
{ {
private readonly ILogger<TasksController> logger; private readonly ILogger<TasksController> logger;

2
server/Ksp.WebServer/KspPageRewriter.cs

@ -37,7 +37,7 @@ namespace Ksp.WebServer
if (encyklopedie is object) if (encyklopedie is object)
{ {
encyklopedie.TextContent = "Kurzy"; encyklopedie.TextContent = "Kurzy";
encyklopedie.SetAttribute("href", "/grafik"); encyklopedie.SetAttribute("href", "/kurz");
if ("grafik" == path) if ("grafik" == path)
{ {
foreach (var li in document.QuerySelectorAll("#menu ul li.active")) foreach (var li in document.QuerySelectorAll("#menu ul li.active"))