ServerUtilities is a module that provides an express like abstraction on top of Java's built in HTTP server methods
import HTTPServer from "../ServerUtilities";
const server = new HTTPServer();
server.get("/", (req, res) => {
res.status(200).send("Hello World")
})
server.listen(8080)
A more detailed example can be found in example.js
ServerUtilities is licensed under the GNU AGPL 3
For support or to make suggestions/bug reports, join my Discord. You can also ask for help in the #code-help channel of the ChatTriggers Discord.