Skip to content

Commit

Permalink
redirect to gaming.chs.se
Browse files Browse the repository at this point in the history
  • Loading branch information
C4illin committed Feb 10, 2025
1 parent becd21f commit 82beecb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion backend/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ recheck();

const app = express();
app.use(cors());
app.use(express.static("../frontend/dist")); // use public
// app.use(express.static("../frontend/dist")); // use public
app.use(express.json()); // to support JSON-encoded bodies
app.use(express.urlencoded({ extended: true })); // to support URL-encoded bodies

Expand All @@ -96,6 +96,10 @@ const transporter = nodemailer.createTransport({
},
});

app.get("/", (_, res) => {
res.redirect(301, "https://gaming.chs.se");
});

app.post("/register", async (req, res) => {
const userEmail = req.body.email.toLowerCase();

Expand Down

0 comments on commit 82beecb

Please sign in to comment.