mirror of
https://gitlab.com/lecarore/breakout71.git
synced 2025-04-20 04:05:06 -04:00
wip
This commit is contained in:
parent
6d0ad5e675
commit
e9d58d6140
13 changed files with 4479 additions and 961 deletions
|
@ -32,15 +32,14 @@ app.get('/', (req, res) => {
|
|||
${fs.readFileSync('./editclient.css').toString()}
|
||||
</style>
|
||||
<script>
|
||||
const allLevels = ${fs.readFileSync(srcPath).toString()};
|
||||
const palette = ${fs.readFileSync('src/palette.json').toString()};
|
||||
let allLevels = ${fs.readFileSync(srcPath).toString()};
|
||||
let palette = ${fs.readFileSync('src/palette.json').toString()};
|
||||
${fs.readFileSync('./editclient.js').toString()}
|
||||
</script>
|
||||
</body>
|
||||
`)
|
||||
})
|
||||
app.post('/', (req, res) => {
|
||||
console.log(req.body)
|
||||
if(req.body?.trim()) {
|
||||
fs.writeFileSync(srcPath, req.body)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue