This repository has been archived on 2026-02-10. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Web2OAC/src/main/java/org/openautonomousconnection/oac2web/ins.java

20 lines
691 B
Java
Raw Normal View History

2026-01-16 23:45:06 +01:00
package org.openautonomousconnection.oac2web;
2026-01-18 18:45:52 +01:00
import org.openautonomousconnection.protocol.packets.v1_0_0.beta.web.WebResponsePacket;
2026-01-19 17:02:46 +01:00
import org.openautonomousconnection.webserver.api.Route;
2026-01-16 23:45:06 +01:00
import org.openautonomousconnection.webserver.api.WebPage;
import org.openautonomousconnection.webserver.api.WebPageContext;
2026-01-19 17:02:46 +01:00
import org.openautonomousconnection.webserver.utils.HttpsProxy;
2026-01-16 23:45:06 +01:00
2026-01-19 17:02:46 +01:00
/**
* Proxies the HTTPS INS page through OAC.
*/
2026-02-06 22:51:56 +01:00
@Route(path = "/ins.php")
2026-01-16 23:45:06 +01:00
public class ins implements WebPage {
2026-01-19 17:02:46 +01:00
@Override
public WebResponsePacket handle(WebPageContext webPageContext) {
2026-02-01 19:33:09 +01:00
return HttpsProxy.proxyGet(webPageContext, "https://open-autonomous-connection.org/ins.php");
2026-01-16 23:45:06 +01:00
}
}