Skip to content

Commit

Permalink
add endpoint to markAsCompleted for mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
dularion committed Nov 26, 2017
1 parent 8e3af80 commit 5aa064a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions grails-app/controllers/streama/DashController.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -186,4 +186,11 @@ class DashController {
render (result as JSON)
}
}

def markAsCompleted(Video video){
ViewingStatus.where{
video == video
}.deleteAll()
render "OK"
}
}
1 change: 1 addition & 0 deletions grails-app/controllers/streama/UrlMappings.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class UrlMappings {
"/api/v1/dash/mediaDetail"(controller: 'dash', action: 'mediaDetail')
"/api/v1/dash/listEpisodesForShow"(controller: 'dash', action: 'listEpisodesForShow')
"/api/v1/dash/cotinueWatching"(controller: 'dash', action: 'cotinueWatching')
"/api/v1/dash/markAsCompleted"(controller: 'dash', action: 'markAsCompleted')

"/api/v1/player/video/$id"(controller: 'player', action: 'video')
"/api/v1/player/updateViewingStatus"(controller: 'player', action: 'updateViewingStatus')
Expand Down

0 comments on commit 5aa064a

Please sign in to comment.