Skip to content

Commit

Permalink
Fixed Routes
Browse files Browse the repository at this point in the history
  • Loading branch information
xbubbo authored Jun 15, 2023
1 parent f929768 commit 009de6a
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,39 +20,39 @@ app.use(
app.use(express.static(path.join(__dirname, "static")));

app.get("/", (req, res) => {
res.sendFile(path.join(__dirname, "routes", "index.html"));
res.sendFile(path.join(__dirname, "static", "index.html"));
});

app.get("/photography", (req, res) => {
res.sendFile(path.join(__dirname, "routes", "search.html"));
res.sendFile(path.join(__dirname, "static", "search.html"));
});

app.get("/nature", (req, res) => {
res.sendFile(path.join(__dirname, "routes", "play.html"));
res.sendFile(path.join(__dirname, "static", "play.html"));
});

app.get("/forest", (req, res) => {
res.sendFile(path.join(__dirname, "routes", "widgetbot.html"));
res.sendFile(path.join(__dirname, "static", "widgetbot.html"));
});

app.get("/go", (req, res) => {
res.sendFile(path.join(__dirname, "routes", "go.html"));
res.sendFile(path.join(__dirname, "static", "go.html"));
});

app.get("/settings", (req, res) => {
res.sendFile(path.join(__dirname, "routes", "settings.html"));
res.sendFile(path.join(__dirname, "static", "settings.html"));
});

app.get("/donate", (req, res) => {
res.sendFile(path.join(__dirname, "routes", "donate.html"));
res.sendFile(path.join(__dirname, "static", "donate.html"));
});

app.get("/ocean", (req, res) => {
res.sendFile(path.join(__dirname, "routes", "apps.html"));
res.sendFile(path.join(__dirname, "static", "apps.html"));
});

app.get("/404", (req, res) => {
res.sendFile(path.join(__dirname, "routes", "404.html"));
res.sendFile(path.join(__dirname, "static", "404.html"));
});

app.get("/*", (req, res) => {
Expand Down

0 comments on commit 009de6a

Please sign in to comment.