mirror of
https://github.com/sergeyyarkov/modbus-logger.git
synced 2026-10-11 18:38:51 +03:00
17 lines
309 B
JavaScript
17 lines
309 B
JavaScript
import express from "express";
|
|
import pino from "pino-http";
|
|
|
|
/**
|
|
* Routers
|
|
*/
|
|
import { apiRouter } from "../routes/api.router.js";
|
|
|
|
const app = express();
|
|
|
|
app.use(pino());
|
|
app.use(express.urlencoded({ extended: true }));
|
|
app.use(express.static("public"));
|
|
app.use("/api", apiRouter);
|
|
|
|
export default app;
|