Finished
This commit is contained in:
49
frontend/info.java
Normal file
49
frontend/info.java
Normal file
@@ -0,0 +1,49 @@
|
||||
package ins.frontend;
|
||||
|
||||
import ins.frontend.utils.WebApp;
|
||||
import org.openautonomousconnection.protocol.packets.v1_0_0.beta.web.WebResponsePacket;
|
||||
import org.openautonomousconnection.webserver.api.Route;
|
||||
import org.openautonomousconnection.webserver.api.WebPage;
|
||||
import org.openautonomousconnection.webserver.api.WebPageContext;
|
||||
import org.openautonomousconnection.webserver.utils.Html;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
/**
|
||||
* Landing page for the registrar ins.frontend.
|
||||
*/
|
||||
@Route(path = "info.html")
|
||||
public final class info implements WebPage {
|
||||
|
||||
@Override
|
||||
public WebResponsePacket handle(WebPageContext ctx) {
|
||||
WebApp.init();
|
||||
String html = Html.page("INS Info", """
|
||||
<section class="card">
|
||||
<h2>OAC Default INS Server</h2>
|
||||
|
||||
<p>
|
||||
The <strong>Default INS Server</strong> is the official, project-operated
|
||||
name service of the Open Autonomous Connection (OAC) network.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
It provides a trusted reference point for resolving InfoNames
|
||||
and enables initial client connections
|
||||
to the OAC ecosystem.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
This server is maintained by the OAC project and is intended
|
||||
as the recommended entry point for public services and new clients.
|
||||
</p>
|
||||
|
||||
<p class="muted">
|
||||
Note: Alternative or private INS servers may exist, but the default INS
|
||||
server represents the official and stable reference instance.
|
||||
</p>
|
||||
</section> """);
|
||||
|
||||
return new WebResponsePacket(200, "text/html", new HashMap<>(), Html.utf8(html));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user