create-loopengine 0.1.57 → 0.1.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2786,6 +2786,13 @@ const server = createServer(async (req, res) => {
|
|
|
2786
2786
|
// web/playground.ts. GET, not POST, and an exact path match
|
|
2787
2787
|
// (neither has a :name segment), so no risk of colliding with the
|
|
2788
2788
|
// regexes above (already partitioned by method).
|
|
2789
|
+
// The bare address is the console itself, the same page as
|
|
2790
|
+
// /agents/config (all its links and requests use absolute paths).
|
|
2791
|
+
if (req.method === 'GET' && pathname === '/') {
|
|
2792
|
+
res.writeHead(200, { 'content-type': 'text/html' }).end(agentsConfigPageHtml)
|
|
2793
|
+
return
|
|
2794
|
+
}
|
|
2795
|
+
|
|
2789
2796
|
if (req.method === 'GET' && pathname === '/playground') {
|
|
2790
2797
|
res.writeHead(200, { 'content-type': 'text/html' }).end(playgroundHtml)
|
|
2791
2798
|
return
|