Powtóreczka

This commit is contained in:
floriano committed 2026-09-30 17:28:53 +02:00
1 parent e80734527f
commit c1348ef991
648 files changed
+66782

No files matched your search

+27
View File
@@ -0,0 +1,27 @@
const express = require('express')
const app = express()
const PORT = 3000
const path = require('path')
app.use(express.json())
app.use(express.urlencoded({
extended: true
}));
app.get("/", function(req, res) {
res.sendFile(path.join(__dirname, "/static/index1.html"))
})
app.post("/test", function(req, res) {
console.log(req.body)
res.send(JSON.stringify({ odpowiedz: "no siema" }))
})
app.use(express.static('static'))
app.listen(PORT, function() {
console.log("Serwer działa, port " + PORT)
})