Don't use a legace /repositories endpoint for getting a key

This commit is contained in:
Piotr Sarnacki 2015-07-07 17:02:51 +02:00
parent 7bc0be0de1
commit 8a1d1b9be6

View File

@ -17,7 +17,7 @@ Route = TravisRoute.extend
afterModel: (model, transition) ->
repo = @modelFor('repo')
Ajax.get "/repositories/#{repo.get('id')}/key", (data) =>
Ajax.get "/repos/#{repo.get('id')}/key", (data) =>
@defaultKey = Ember.Object.create(fingerprint: data.fingerprint)
setupController: (controller, model) ->