Completed contact page??

This commit is contained in:
Esther
2020-07-01 12:10:30 +01:00
parent f638cf4d8b
commit ffe3b01e32
11 changed files with 229 additions and 42 deletions

View File

@@ -4,8 +4,8 @@ var router = express.Router();
/* GET home page. */
router.get('/', function(req, res, next) {
const ghost_key = process.env.GHOST_KEY
const base_url = `https://blog.pastel.codes/ghost/api/v3/content/posts/?key=${ghost_key}`
const GHOST_KEY = process.env.GHOST_KEY
const base_url = `https://blog.pastel.codes/ghost/api/v3/content/posts/?key=${GHOST_KEY}`
axios.all([
axios.get(`${base_url}&limit=3`),
@@ -22,7 +22,6 @@ router.get('/', function(req, res, next) {
.catch(error => {
console.log(error);
});
// https://blog.pastel.codes/ghost/api/v3/content/posts/?key=
});
module.exports = router;