mirror of
https://github.com/philipredstone/relnet.git
synced 2025-06-17 05:01:24 +02:00
Fix tailwind
This commit is contained in:
parent
f7a77587c2
commit
acbff34640
@ -1,10 +1,11 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
<meta name="author" content="Tobias Hopp, Philip Rothstein" />
|
||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Relnet</title>
|
<title>Relnet</title>
|
||||||
<!--<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>-->
|
<!--replaced with local import <script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script>-->
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
@ -1,3 +1 @@
|
|||||||
@tailwind base;
|
@import "tailwindcss";
|
||||||
@tailwind components;
|
|
||||||
@tailwind utilities;
|
|
@ -29,6 +29,7 @@
|
|||||||
"dotenv": "^16.5.0",
|
"dotenv": "^16.5.0",
|
||||||
"express": "^5.1.0",
|
"express": "^5.1.0",
|
||||||
"express-validator": "^7.2.1",
|
"express-validator": "^7.2.1",
|
||||||
|
"helmet": "^8.1.0",
|
||||||
"jsonwebtoken": "^9.0.2",
|
"jsonwebtoken": "^9.0.2",
|
||||||
"mongoose": "^8.13.2"
|
"mongoose": "^8.13.2"
|
||||||
},
|
},
|
||||||
@ -38,6 +39,7 @@
|
|||||||
"@types/cors": "^2.8.17",
|
"@types/cors": "^2.8.17",
|
||||||
"@types/dotenv": "^8.2.3",
|
"@types/dotenv": "^8.2.3",
|
||||||
"@types/express": "^5.0.1",
|
"@types/express": "^5.0.1",
|
||||||
|
"@types/helmet": "^4.0.0",
|
||||||
"@types/jsonwebtoken": "^9.0.9",
|
"@types/jsonwebtoken": "^9.0.9",
|
||||||
"@types/mongoose": "^5.11.97",
|
"@types/mongoose": "^5.11.97",
|
||||||
"@types/node": "^22.14.1",
|
"@types/node": "^22.14.1",
|
||||||
|
@ -7,12 +7,14 @@ import networkRoutes from './routes/network.routes';
|
|||||||
import peopleRoutes from './routes/people.routes';
|
import peopleRoutes from './routes/people.routes';
|
||||||
import relationshipRoutes from './routes/relationship.routes';
|
import relationshipRoutes from './routes/relationship.routes';
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
|
import helmet from "helmet";
|
||||||
|
|
||||||
dotenv.config();
|
dotenv.config();
|
||||||
|
|
||||||
const app: Application = express();
|
const app: Application = express();
|
||||||
|
|
||||||
// Middleware
|
// Middleware
|
||||||
|
app.use(helmet());
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
app.use(cookieParser());
|
app.use(cookieParser());
|
||||||
app.use(
|
app.use(
|
||||||
@ -28,10 +30,6 @@ app.use('/api/networks', networkRoutes);
|
|||||||
app.use('/api/networks', peopleRoutes);
|
app.use('/api/networks', peopleRoutes);
|
||||||
app.use('/api/networks', relationshipRoutes);
|
app.use('/api/networks', relationshipRoutes);
|
||||||
|
|
||||||
// Base route
|
|
||||||
/*app.get('/', (req, res) => {
|
|
||||||
res.send('Friendship Network API is running');
|
|
||||||
});*/
|
|
||||||
|
|
||||||
app.use(express.static(path.join(__dirname, '../frontend/dist/')));
|
app.use(express.static(path.join(__dirname, '../frontend/dist/')));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user