Merge branch 'feature/landingPage' into dev
This commit is contained in:
commit
8832768838
5 files changed
+166
-7
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, '/src/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