Skip to content

Commit

Permalink
🛝 Yeni dev sunucu seçeneklerine geç
Browse files Browse the repository at this point in the history
  • Loading branch information
KimlikDAO-bot committed Nov 28, 2023
1 parent 29b6edd commit 8843a8f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib
Submodule lib updated 1 files
+26 −6 util/sunucu.js
19 changes: 9 additions & 10 deletions sunucu/dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ import { devSunucu } from "../lib/util/sunucu.js";

const config = parse(readFileSync('sunucu/dev.toml'));

devSunucu(config.port, {
"/": { ad: "ana/sayfa.html", dil: "tr" },
"/al": { ad: "al/sayfa.html", dil: "tr" },
"/mint": { ad: "al/sayfa.html", dil: "en" },
"/incele": { ad: "incele/sayfa.html", dil: "tr" },
"/view": { ad: "incele/sayfa.html", dil: "en" },
"/oyla": { ad: "oyla/sayfa.html", dil: "tr" },
"/vote": { ad: "oyla/sayfa.html", dil: "en" },
"/iptal": { ad: "iptal/sayfa.html", dil: "tr" },
"/revoke": { ad: "iptal/sayfa.html", dil: "en" },
devSunucu({
port: config.port,
dizin: "ana",
sayfalar: [
["al", "mint"],
["incele", "view"],
["oyla", "vote"],
["iptal", "revoke"]
]
});

0 comments on commit 8843a8f

Please sign in to comment.