This commit is contained in:
aplikacje committed 2026-09-10 10:51:05 +02:00
1 parent 0d1dce5535
commit 72ed8ef789
612 files changed
+64975

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
const express = require("express")
const app = express()
const PORT = 3000
const path = require("path")
app.get("/", function (req, res) {
res.sendFile(path.join(__dirname, '/static/formularz_get_1.html'))
})
app.get("/handle_form", function (req, res) {
res.send(`<html><body style="background: ${req.query.colour};">${req.query.colour}</body></html>`)
})
app.listen(PORT, function () {
console.log(PORT)
})