2024-01-30 15:58:05 +08:00

66 lines
1.3 KiB
JavaScript

"use strict";
var router = require("express").Router();
//landing page of index
router.get("/", function (req, res, next) {
res.render("index");
});
//news page
router.get("/news", function (req, res, next) {
res.render("news");
});
//learn more page
router.get("/learnmore", function (req, res, next) {
res.render("learnmore");
});
//login | register page
router.get("/login", function (req, res, next) {
res.render("signuplogin");
});
//profile page
router.get("/profile", function (req, res, next) {
res.render("profile");
});
//forgot password page
router.get("/forgotpassword", function (req, res, next) {
res.render("forgotpassword");
});
//resetted password page
router.get("/resetpassword", function (req, res, next) {
res.render("resetpassword");
});
//check email page
router.get("/checkemail", function (req, res, next) {
res.render("checkemail");
});
//contact page
router.get("/contact", function (req, res, next) {
res.render("contact");
});
//data page
router.get("/viewdata", function (req, res, next) {
res.render("viewdata");
});
//api doc
router.get("/api", function (req, res, next) {
res.render("api");
});
// sensor data
router.get("/sensor-data", function (req, res, next) {
res.render("sensor-data");
});
module.exports = router;