update/landing page and aboutUs page created
This commit is contained in:
1 parent
2bd4b1e16e
commit
eaecb883e6
4 files changed
+163
-1
No files matched your search
@@ -9,7 +9,21 @@ const app = express();
|
||||
const port = process.env.PORT || 3000;
|
||||
|
||||
app.set('view engine', 'ejs');
|
||||
app.set('views',path.join(__dirname, 'views'));
|
||||
app.set('views',path.join(__dirname, 'src/views'));
|
||||
|
||||
|
||||
app.use(express.urlencoded({ extended: true }));
|
||||
|
||||
|
||||
/*
|
||||
STATIC ROUTINGS
|
||||
*/
|
||||
|
||||
app.use("/scripts", express.static("./src/scripts"));
|
||||
app.use("/css", express.static("./src/css"));
|
||||
app.use("/images", express.static("./src/images"));
|
||||
app.use("/views", express.static("./src/views"));
|
||||
|
||||
|
||||
/*
|
||||
ROUTINGS
|
||||
@@ -19,6 +33,10 @@ app.get('/', (req, res) => {
|
||||
res.render('index');
|
||||
});
|
||||
|
||||
app.get('/landing', (req, res) => {
|
||||
res.render('landing');
|
||||
});
|
||||
|
||||
app.get('/signup', (req, res) => {
|
||||
res.render('signup');
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user