repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
refactor: spell fix in log messages
[e-mobility-charging-stations-simulator.git]
/
ui
/
web
/
start.js
diff --git
a/ui/web/start.js
b/ui/web/start.js
index 99a794d5af59c699674895225e03bf921bfa192b..46a8bb75884f67da0c4b2ecfc9138bff44fb7ab2 100644
(file)
--- a/
ui/web/start.js
+++ b/
ui/web/start.js
@@
-2,6
+2,7
@@
import { createServer } from 'node:http'
import { dirname, join } from 'node:path'
import { env } from 'node:process'
import { fileURLToPath } from 'node:url'
import { dirname, join } from 'node:path'
import { env } from 'node:process'
import { fileURLToPath } from 'node:url'
+
import finalhandler from 'finalhandler'
import serveStatic from 'serve-static'
import finalhandler from 'finalhandler'
import serveStatic from 'serve-static'
@@
-11,8
+12,6
@@
const uiPath = join(dirname(fileURLToPath(import.meta.url)), './dist')
const serve = serveStatic(uiPath)
const serve = serveStatic(uiPath)
-const server = createServer(function onRequest(req, res) {
- serve(req, res, finalhandler(req, res))
-})
+const server = createServer((req, res) => serve(req, res, finalhandler(req, res)))
-server.listen(PORT, () => console.info(`
App
running at: http://localhost:${PORT}`))
+server.listen(PORT, () => console.info(`
Web UI
running at: http://localhost:${PORT}`))