Skip to content

Commit

Permalink
Rugby API urls need /sport at the start to work with nginx
Browse files Browse the repository at this point in the history
  • Loading branch information
Jenny Sivapalan committed Aug 21, 2015
1 parent 5395e23 commit 18c1824
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions dev-build/conf/routes
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ GET /football/match/:matchId
GET /football/match-redirect/:year/:month/:day/:homeTeamId/:awayTeamId football.controllers.MoreOnMatchController.redirectToMatch(year,month,day,homeTeamId,awayTeamId)
GET /football/match-redirect/:matchId football.controllers.MoreOnMatchController.redirectToMatchId(matchId)

GET /rugby/api/score/:year/:month/:day/:team1Id/:team2Id.json rugby.controllers.MatchesController.scoreJson(year, month, day, team1Id, team2Id)
GET /rugby/api/score/:year/:month/:day/:team1Id/:team2Id rugby.controllers.MatchesController.score(year, month, day, team1Id, team2Id)
GET /sport/rugby/api/score/:year/:month/:day/:team1Id/:team2Id.json rugby.controllers.MatchesController.scoreJson(year, month, day, team1Id, team2Id)
GET /sport/rugby/api/score/:year/:month/:day/:team1Id/:team2Id rugby.controllers.MatchesController.score(year, month, day, team1Id, team2Id)

# Admin
# authentication endpoints
Expand Down
4 changes: 2 additions & 2 deletions sport/conf/routes
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@ GET /football/match/:matchId
GET /football/match-redirect/:year/:month/:day/:homeTeamId/:awayTeamId football.controllers.MoreOnMatchController.redirectToMatch(year,month,day,homeTeamId,awayTeamId)
GET /football/match-redirect/:matchId football.controllers.MoreOnMatchController.redirectToMatchId(matchId)

GET /rugby/api/score/:year/:month/:day/:team1Id/:team2Id.json rugby.controllers.MatchesController.scoreJson(year, month, day, team1Id, team2Id)
GET /rugby/api/score/:year/:month/:day/:team1Id/:team2Id rugby.controllers.MatchesController.score(year, month, day, team1Id, team2Id)
GET /sport/rugby/api/score/:year/:month/:day/:team1Id/:team2Id.json rugby.controllers.MatchesController.scoreJson(year, month, day, team1Id, team2Id)
GET /sport/rugby/api/score/:year/:month/:day/:team1Id/:team2Id rugby.controllers.MatchesController.score(year, month, day, team1Id, team2Id)
4 changes: 2 additions & 2 deletions standalone/conf/standalone.routes
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ GET /football/match/:matchId
GET /football/match-redirect/:year/:month/:day/:homeTeamId/:awayTeamId football.controllers.MoreOnMatchController.redirectToMatch(year,month,day,homeTeamId,awayTeamId)
GET /football/match-redirect/:matchId football.controllers.MoreOnMatchController.redirectToMatchId(matchId)

GET /rugby/api/score/:year/:month/:day/:team1Id/:team2Id.json rugby.controllers.MatchesController.scoreJson(year, month, day, team1Id, team2Id)
GET /rugby/api/score/:year/:month/:day/:team1Id/:team2Id rugby.controllers.MatchesController.score(year, month, day, team1Id, team2Id)
GET /sport/rugby/api/score/:year/:month/:day/:team1Id/:team2Id.json rugby.controllers.MatchesController.scoreJson(year, month, day, team1Id, team2Id)
GET /sport/rugby/api/score/:year/:month/:day/:team1Id/:team2Id rugby.controllers.MatchesController.score(year, month, day, team1Id, team2Id)

# Onward journeys
GET /series/*path.json controllers.SeriesController.renderSeriesStories(path)
Expand Down

0 comments on commit 18c1824

Please sign in to comment.