fixed about page missing
This commit is contained in:
parent
5cf33608cf
commit
88cef04f49
3 changed files with 21 additions and 1 deletions
|
@ -42,6 +42,20 @@ public class FrontEndController {
|
|||
ctx.render("home.ftl");
|
||||
}
|
||||
|
||||
@OpenApi(
|
||||
summary = "Get the about page.",
|
||||
description = "Get the about",
|
||||
operationId = "getAbout",
|
||||
path = "/about",
|
||||
methods = HttpMethod.GET,
|
||||
tags = {"About"},
|
||||
responses = {
|
||||
@OpenApiResponse(status = "200")
|
||||
})
|
||||
public static void getAbout(Context ctx) {
|
||||
ctx.render("about.ftl");
|
||||
}
|
||||
|
||||
/*
|
||||
TODO: getAllParlamentarier gibt es hier UND im ParlamentarierController (etwas unterschiedliche Implementierungen)
|
||||
--> konsolidieren!
|
||||
|
|
|
@ -73,6 +73,8 @@ public class RESTHandler {
|
|||
// Charts
|
||||
app.get("/charts", FrontEndController::getCharts);
|
||||
|
||||
app.get("/about", FrontEndController::getAbout);
|
||||
|
||||
app.get("/export/pdf/speech/{id}", SpeechesLatexExportController::exportSpeech); // exportiere eine Rede als PDF
|
||||
app.get("/export/pdf/speaker/{id}", SpeechesLatexExportController::exportSpeechesFromSpeaker); // exportiere alle Reden eines Parlamentariers als PDF
|
||||
app.get("/export/pdf/topic/{topic}", SpeechesLatexExportController::exportSpeechesWithTopic); // exportiere alle Reden zu einem Thema als PDF
|
||||
|
|
|
@ -2,5 +2,9 @@
|
|||
<link rel="stylesheet" href="index.css">
|
||||
</head>
|
||||
<#include "header.ftl">
|
||||
<h1>About</h1>
|
||||
<h1>Über</h1>
|
||||
<p>Alle Infos zur Nutzung und die Dokumentation kann auf der <a href="https://ppr.gitlab.texttechnologylab.org/leonkastner/multimodal-parliament-explorer-docu">Doku GitLab Repository eingesehen werden</a></p>
|
||||
<br>
|
||||
<br>
|
||||
<p>PPR WS24/25 - Gruppe_05_1</p>
|
||||
<#include "footer.ftl">
|
Loading…
Add table
Add a link
Reference in a new issue