As of September 2024 this package is deprecated and will receive no further updates.
Any internal changes should be made directly in lu-greenfield
.
The base server for lu apps
import express from "express";
import { init } from "lu-server";
const routes = express.Router();
routes.get("/", (req, res) => res.status(200).send("Hello World!"));
const { app, start } = init(routes);
if (import.meta.url.endsWith(process.argv[1])) {
start();
}
export default app; // for testing