Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ROOT ROUTE
- router.get("/", function(req, res){
- res.render("landing");
- });
- //NEW CAMPGROUND ROUTE - display form to add new campground.
- router.get("/new", middleware.isLoggedIn, function(req, res){
- res.render("campgrounds/new");
- });
Add Comment
Please, Sign In to add comment