Skip to content

Commit

Permalink
Change projects API to thoughtbot-hosted app (#54)
Browse files Browse the repository at this point in the history
Previously, this was pointing at an app hosted on my Vercel account. 

Relevant links for the API:

* [private GitHub
repo](https://github.com/thoughtbot/github-projects-api)
* [private Heroku
app](https://dashboard.heroku.com/apps/thoughtbot-projects-api)
* [API
endpoint](https://thoughtbot-projects-api-68b03dc59059.herokuapp.com/api/projects)
  • Loading branch information
Stephen Hanson authored Aug 23, 2024
1 parent 2370fad commit dc4e6ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ test('renders app, can navigate between screens', async () => {
// Recommended to place these mocks in a central location like `src/test/mocks`
function mockGitHubProjects() {
return mock.get<GithubProjectsResponse, null>(
'https://github-projects-api.vercel.app/api/projects',
'https://thoughtbot-projects-api-68b03dc59059.herokuapp.com/api/projects',
{
response: {
projects: [
Expand Down
2 changes: 1 addition & 1 deletion templates/boilerplate/src/util/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const api = {
// TODO: sample, remove
githubRepos: () =>
makeRequest<GithubProjectsResponse>({
url: 'https://github-projects-api.vercel.app/api/projects',
url: 'https://thoughtbot-projects-api-68b03dc59059.herokuapp.com/api/projects',
}),
};

Expand Down

0 comments on commit dc4e6ce

Please sign in to comment.