Integrace s KSPím webem #64

Manually merged
vasek merged 4 commits from vs-deploy-test-hack into master 2020-11-30 11:56:20 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit bdce8e4518 - Show all commits

View file

@ -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;

View file

@ -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"))