Skip to content

Commit

Permalink
Change API path for getting favorite
Browse files Browse the repository at this point in the history
  • Loading branch information
chaspy committed Oct 20, 2018
1 parent 844f9eb commit 58c6ebc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
redirect to('/top')
end

get '/favorite' do
get '/api/v1.0/favorite' do
@twitter.access_token = session[:twitter_oauth].token
@twitter.access_token_secret = session[:twitter_oauth].secret
result_fav = @twitter.favorites(count: '200')
Expand Down
2 changes: 1 addition & 1 deletion public/favorite.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
methods: {
async getFavorites() {
var url = 'http://localhost:4567/favorite';
var url = 'http://localhost:4567/api/v1.0/favorite';
await axios.get(url).then(x => { this.favorites = x.data; });
}
},
Expand Down

0 comments on commit 58c6ebc

Please sign in to comment.