You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
307 B
11 lines
307 B
class WatchVideoHistoriesController < ApplicationController
|
|
before_action :require_login
|
|
|
|
def create
|
|
watch_log = CreateWatchVideoService.new(current_user, request, params).call
|
|
render_ok(log_id: watch_log&.id)
|
|
rescue CreateWatchVideoService::Error => ex
|
|
render_error(ex.message)
|
|
end
|
|
end
|