question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ghost.url.api as an independent NPM module

See original GitHub issue

Issue Summary

Access the ghost.url.api utility as an independent npm module to consume data ghost as a headless blog / CMS within another website.


is this possible?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ErisDScommented, Jan 13, 2017

The issue with trailing slashes & CORS is tracked over in https://github.com/TryGhost/Ghost/issues/7839 😃

The only thing that the script seems to depend on is the url.

What I’m trying to say is that figuring out the correct api base url is one of the hardest parts of using our API, and therefore, that’s exactly why we added this utility 😉 Sure, it has other useful features, like getting the trailing slashes right, and neatly adding query params, however IMO auto-including the base url is the nicest feature 😁 .

0reactions
oliverbennscommented, Feb 10, 2017

@andrewmclagan A little late, but this might be of use to hook Ghost up to a redux build: https://github.com/oliverbenns/redux-ghost

Read more comments on GitHub >

github_iconTop Results From Across the Web

Content API JavaScript Client - Ghost.org
Ghost provides a flexible promise-based JavaScript library for accessing the Content API. The library can be used in any JavaScript project, client or ......
Read more >
ghost - npm
Start using ghost in your project by running `npm i ghost`. There are 6 other projects in the npm registry using ghost.
Read more >
ghost - npm Package Health Analysis - Snyk
The npm package ghost receives a total of 5,353 downloads a week. As such, we scored ghost popularity level to be Recognized. Based...
Read more >
Why the Hell Would I Use Node.js? A Case-by-case Tutorial
The idea behind npm modules is similar to that of Ruby Gems: It is a set of ... With Node.js, you can expose...
Read more >
Building a REST API with Node.js, MySQL, and Express
Then, we check for URLs missing from our endpoints and throw a 404 error to the user if they're accessed. The global error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found