Skip to content

Commit

Permalink
hacking puzzlescript engine for psbs
Browse files Browse the repository at this point in the history
  • Loading branch information
iznaut committed Nov 7, 2024
1 parent 452f289 commit 11c112c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const db = require('./db');
const { Node: Logtail } = require("@logtail/js");
const logtail = new Logtail(process.env.LOGTAIL_TOKEN);

const subdomain = require('express-subdomain');
const express = require('express');
const path = require('path');
const { createServer } = require('http');
Expand Down Expand Up @@ -130,6 +131,14 @@ app.get('/get_random_gif', async (req, res) => {
}
});

var router = express.Router();

router.get('/', function (req, res) {
res.redirect('public/puzzlescript-ws/');
});

app.use(subdomain('puzzlescript', router));

// app.get('/progress', async (req, res) => {
// try {
// console.log(req.query.nquid)
Expand Down
11 changes: 11 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"bitsy-boilerplate": "github:seleb/bitsy-boilerplate",
"dotenv": "^16.4.5",
"express": "^4.17.3",
"express-subdomain": "^1.0.6",
"lowdb": "^7.0.1",
"mysql": "^2.18.1",
"pg": "^8.13.0",
Expand Down
2 changes: 1 addition & 1 deletion public/bridges/src/puzzlescript/psbs_config_template.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
gist_id: null
engine: https://dreamscape-explorer.app/puzzlescript-ws/
engine: https://puzzlescript.dreamscape-explorer.app/
template: main.pss
user_extensions: []
Build:
Expand Down

0 comments on commit 11c112c

Please sign in to comment.