Files
przekroj/pages/api/readtext.js
Cyber Panel 5c11a289df Add uziom generation script and update wet input documents
- Created a new Python script `uziom.py` for generating DXF drawings of grounding systems based on user input parameters.
- Added detailed documentation in `wet_input_15.docx` and `wet_input_3.docx` for the design of grounding systems, including calculations for resistance and resistivity measurements.
- Included placeholders for dynamic data insertion in the documents to facilitate project-specific customization.
2025-07-01 11:14:49 +02:00

12 lines
247 B
JavaScript

import fs from "fs";
export default function (req, res) {
fs.readFile(`externals/${req.body.id}.txt`, (err, data) => {
if (err) throw err;
res
.status(200)
.send({ data: data.toString().slice(0, data.toString().length - 1) });
});
}