Generate visual representations of the networks underlying video-gamebooks on YouTube
https://youtube-maze.delab.re/
Nevar pievienot vairāk kā 25 tēmas
Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
20 rindas
565 B
20 rindas
565 B
import express from 'express';
|
|
import helmet from 'helmet';
|
|
import path from 'path';
|
|
import cookieParser from 'cookie-parser';
|
|
import logger from 'morgan';
|
|
import { fileURLToPath } from 'url';
|
|
|
|
const thisdir = path.dirname(fileURLToPath(import.meta.url));
|
|
const app = express();
|
|
export default app;
|
|
|
|
app.use(helmet());
|
|
app.use(logger('dev'));
|
|
app.use(express.json());
|
|
app.use(express.urlencoded({ extended: false }));
|
|
app.use(cookieParser());
|
|
app.use(express.static(path.join(thisdir, 'public')));
|
|
|
|
import mazes from './routes/mazes.mjs';
|
|
app.use('/mazes', mazes);
|
|
|