2022-04-17 22:27:30 +00:00
|
|
|
package dev.plex.request.impl;
|
|
|
|
|
|
|
|
import dev.plex.request.AbstractServlet;
|
|
|
|
import dev.plex.request.GetMapping;
|
|
|
|
import jakarta.servlet.http.HttpServletRequest;
|
2022-04-17 23:21:44 +00:00
|
|
|
import jakarta.servlet.http.HttpServletResponse;
|
2022-04-17 22:27:30 +00:00
|
|
|
|
|
|
|
public class SchematicIndexEndpoint extends AbstractServlet
|
|
|
|
{
|
2022-04-17 22:37:00 +00:00
|
|
|
@GetMapping(endpoint = "/api/schematics/")
|
2022-04-17 23:21:44 +00:00
|
|
|
public String schematicIndex(HttpServletRequest request, HttpServletResponse response)
|
2022-04-17 22:27:30 +00:00
|
|
|
{
|
2022-04-17 22:37:00 +00:00
|
|
|
return readFile(this.getClass().getResourceAsStream("/httpd/schematic_list.html"));
|
2022-04-17 22:27:30 +00:00
|
|
|
}
|
|
|
|
}
|