From 5359e695d2614e079244abeb4ff865bfc8d9e831 Mon Sep 17 00:00:00 2001
From: zumbiepig <121742281+zumbiepig@users.noreply.github.com>
Date: Thu, 12 Sep 2024 16:20:49 -0700
Subject: [PATCH] .
---
routes/index.ts | 17 ++-
server.ts | 2 +-
src/game/web/clients/starlike/index.html | 2 +-
src/game/web/main/1.11.2/index.html | 2 +-
src/game/web/main/1.9.4/index.html | 2 +-
.../scripts/eagler-launch/1.8.8/main.ts | 111 ++++++++++++------
.../scripts/eagler-launch/1.9.4/main.ts | 33 ------
src/resources/scripts/google-tag.ts | 9 +-
src/sw-full.ts | 7 +-
src/sw.ts | 6 +-
10 files changed, 99 insertions(+), 92 deletions(-)
delete mode 100644 src/resources/scripts/eagler-launch/1.9.4/main.ts
diff --git a/routes/index.ts b/routes/index.ts
index 9574359..920d834 100644
--- a/routes/index.ts
+++ b/routes/index.ts
@@ -1,9 +1,14 @@
-// @ts-nocheck
-import { Router } from 'express';
-const indexRouter = Router();
+import {
+ Router,
+ type Request,
+ type Response,
+ type NextFunction,
+} from 'express';
-indexRouter.get('/', async (req, res) => {
- // router for future use
+const router = Router();
+
+router.get('/', (_req: Request, _res: Response, next: NextFunction) => {
+ next();
});
-export { indexRouter };
+export default router;
diff --git a/server.ts b/server.ts
index 529d516..35c82b5 100644
--- a/server.ts
+++ b/server.ts
@@ -16,7 +16,7 @@ import morgan from 'morgan';
import serveFavicon from 'serve-favicon';
import serveStatic from 'serve-static';
-import { indexRouter } from './routes/index.ts';
+import indexRouter from './routes/index.ts';
const BASE_DIR = join(import.meta.dir, 'public');
const PORT = process.env['PORT'] ?? 3000;
diff --git a/src/game/web/clients/starlike/index.html b/src/game/web/clients/starlike/index.html
index 220b63f..8176489 100644
--- a/src/game/web/clients/starlike/index.html
+++ b/src/game/web/clients/starlike/index.html
@@ -8,7 +8,7 @@
-
+