mirror of
https://github.com/rajnandan1/kener.git
synced 2026-01-06 09:30:21 -06:00
20 lines
456 B
JavaScript
20 lines
456 B
JavaScript
import { handler } from "./build/handler.js";
|
|
import express from "express";
|
|
import { STATUS_OK } from "./scripts/check.js";
|
|
import { Startup } from "./scripts/startup.js";
|
|
const PORT = process.env.PORT || 3000;
|
|
console.log("STATUS_OK", STATUS_OK);
|
|
Startup();
|
|
|
|
const app = express();
|
|
|
|
app.get("/healthcheck", (req, res) => {
|
|
res.end("ok");
|
|
});
|
|
|
|
app.use(handler);
|
|
|
|
app.listen(PORT, () => {
|
|
console.log("Kener is running on port " + PORT + "!");
|
|
});
|