- Added Tailwind CSS and related packages to the project. - Refactored App.css and index.css to use Tailwind for styling. - Enhanced MainForm component with improved form handling, validation, and layout using Material-UI and Tailwind CSS. - Implemented dynamic error handling and submission feedback. - Created a new Tailwind configuration file.
15 lines
347 B
JavaScript
15 lines
347 B
JavaScript
import express from "express";
|
|
import dotenv from "dotenv";
|
|
const router = express.Router();
|
|
dotenv.config();
|
|
|
|
import { getAll25 } from "./frontend.data.js";
|
|
|
|
router.post("/frontend", (req, res) => {
|
|
console.log(req.body);
|
|
res.status(200).json({ message: "Data received successfully" });
|
|
console.log(getAll25());
|
|
});
|
|
|
|
export default router;
|