diff --git a/Backend/index.ts b/Backend/index.ts index dbb3bca..499c238 100644 --- a/Backend/index.ts +++ b/Backend/index.ts @@ -31,6 +31,7 @@ app.use('/docs', swaggerUi.serve, swaggerUi.setup(openApiDocument)); app.all('/api/auth/*splat', toNodeHandler(auth)); app.use(express.json()); +app.use('/sim', express.static('public')); app.use('/videos', videosRoutes); app.use('/admin', adminRoutes); app.use('/devices', devicesRoutes); diff --git a/Backend/public/mobile-sim.html b/Backend/public/mobile-sim.html new file mode 100644 index 0000000..76676c8 --- /dev/null +++ b/Backend/public/mobile-sim.html @@ -0,0 +1,448 @@ + + +
+ + ++ Use this page like a phone app: register device role, connect socket with bearer device token, and run camera/client + actions. You must already be signed in via Better Auth in this browser session. +
+ +