From d89f744003e76de720a39b2f8b24076d7b5b017e Mon Sep 17 00:00:00 2001 From: cha0s Date: Sat, 20 Jul 2024 04:42:10 -0500 Subject: [PATCH] refactor: session --- app/routes/_main-menu.play.$.$/route.jsx | 2 +- app/{ => util}/session.server.js | 0 app/websocket.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename app/{ => util}/session.server.js (100%) diff --git a/app/routes/_main-menu.play.$.$/route.jsx b/app/routes/_main-menu.play.$.$/route.jsx index 3b8ba82..714bedb 100644 --- a/app/routes/_main-menu.play.$.$/route.jsx +++ b/app/routes/_main-menu.play.$.$/route.jsx @@ -9,8 +9,8 @@ import DebugContext from '@/react/context/debug.js'; import EcsContext from '@/react/context/ecs.js'; import MainEntityContext from '@/react/context/main-entity.js'; import RadiansContext from '@/react/context/radians.js'; -import {juggleSession} from '@/session.server'; import {TAU} from '@/util/math.js'; +import {juggleSession} from '@/util/session.server'; export async function loader({request}) { await juggleSession(request); diff --git a/app/session.server.js b/app/util/session.server.js similarity index 100% rename from app/session.server.js rename to app/util/session.server.js diff --git a/app/websocket.js b/app/websocket.js index 7de0582..810a334 100644 --- a/app/websocket.js +++ b/app/websocket.js @@ -4,7 +4,7 @@ import {dirname, join} from 'node:path'; import {WebSocketServer} from 'ws'; import Server from '@/net/server/server.js'; -import {getSession} from '@/session.server.js'; +import {getSession} from '@/util/session.server.js'; import Engine from './engine.js';