Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Latest commit

 

History

History
29 lines (18 loc) · 629 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 629 Bytes

DEPRECATED

As of September 2024 this package is deprecated and will receive no further updates.

Any internal changes should be made directly in lu-greenfield.

LU Server

Node.js CI

The base server for lu apps

usage

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