Base UI design, May contain bugs

This commit is contained in:
Mann Patel
2025-03-05 22:30:52 -07:00
parent 4bedeed33c
commit 49929a85da
28 changed files with 2208 additions and 367 deletions

View File

@@ -2,16 +2,10 @@ import express, { json } from "express";
import cors from "cors";
const app = express();
// Middleware
//uses the cors and json middleware
//cors is used to allow cross-origin requests
//json is used to parse the request body
app.use(cors());
app.use(json());
// Sample Route
//This is a sample route that sends a JSON response
//when a GET request is made to /api/test
// sample route
app.get("/api/test", (req, res) => {
res.json({ message: "Hello from server!" });
});