This commit is contained in:
parent
bfcd64cf0e
commit
4e782e980c
|
|
@ -591,21 +591,6 @@ io.on("connection", (socket) => {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/login", (req, res) => {
|
|
||||||
// res.render("client_login")
|
|
||||||
res.render("client/client_login", {
|
|
||||||
layout: "layouts/auth", // ⬅️ override layout
|
|
||||||
title: "DocVA | Login"
|
|
||||||
});
|
|
||||||
})
|
|
||||||
|
|
||||||
app.get("/forgot-password", (req, res) => {
|
|
||||||
res.render("forgot_password", {
|
|
||||||
title: "Forgot Password",
|
|
||||||
layout: "layouts/forgotpasswordlayout"
|
|
||||||
});
|
|
||||||
})
|
|
||||||
|
|
||||||
app.get("/health", (req, res) => {
|
app.get("/health", (req, res) => {
|
||||||
return res.status(200).json({ "success": true, "message": "Server is Healthy" })
|
return res.status(200).json({ "success": true, "message": "Server is Healthy" })
|
||||||
})
|
})
|
||||||
|
|
@ -633,6 +618,21 @@ app.get("/tnyk/:sf_token", (req, res) => {
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
app.get("/", (req, res) => {
|
||||||
|
// res.render("client_login")
|
||||||
|
res.render("client/client_login", {
|
||||||
|
layout: "layouts/auth", // ⬅️ override layout
|
||||||
|
title: "DocVA | Login"
|
||||||
|
});
|
||||||
|
})
|
||||||
|
|
||||||
|
app.get("/forgot-password", (req, res) => {
|
||||||
|
res.render("forgot_password", {
|
||||||
|
title: "Forgot Password",
|
||||||
|
layout: "layouts/forgotpasswordlayout"
|
||||||
|
});
|
||||||
|
})
|
||||||
|
|
||||||
app.use((req, res) => {
|
app.use((req, res) => {
|
||||||
res.status(404).render("not_found", {
|
res.status(404).render("not_found", {
|
||||||
layout: "layouts/error",
|
layout: "layouts/error",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue