Powtórzenie z lekcji 1

This commit is contained in:
floriano committed 2026-09-09 19:31:31 +02:00
1 parent a102c6ea1e
commit 0d1dce5535
625 files changed
+65007

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
const express = require("express")
const app = express()
const PORT = 3000
const path = require("path")
app.get("/koty", function(req, res) {
res.sendFile(path.join(__dirname, "/static/pages/koty.html"))
})
app.get("/auta", function(req, res) {
res.sendFile(path.join(__dirname, "/static/pages/auta.html"))
})
app.get("/drzewa", function(req, res) {
res.sendFile(path.join(__dirname, "/static/pages/drzewa.html"))
})
app.use(express.static('static'))
app.listen(PORT, function() {
console.log(PORT)
})