This commit is contained in:
Luiz H. R. Silva 2024-06-11 09:13:51 -03:00
parent 9a839c693d
commit ad6dcda6a5
4 changed files with 225 additions and 206 deletions

View file

@ -5,6 +5,7 @@ import fs from "node:fs";
import { gerar } from "./listar_arquivos";
import { ambiente } from "./ambiente";
import { renderToStaticMarkup } from "react-dom/server";
import bodyParser from 'body-parser'
// biome-ignore lint/style/useImportType: <explanation>
import React, {} from "react";
@ -58,6 +59,7 @@ gerar.then(() => {
app.use(express.json());
app.use(express.urlencoded());
app.use(cors());
app.use(bodyParser.urlencoded({ extended: false }))
app.get([PREFIXO, `${PREFIXO}/`], (req, res) => {
const html = (