new MediaAttachment video style :playable for mp4 to make videojs work with multiple files, hiding albums, hiding bookmark collections. may need tweaks on mediaattachment for mov and other formats : todo :
This commit is contained in:
mgabdev
2020-12-22 12:11:22 -05:00
parent 6fbea0a59e
commit 34f6a1ab5b
28 changed files with 259 additions and 138 deletions

View File

@@ -2,15 +2,11 @@
class Api::V1::AlbumsController < Api::BaseController
before_action :require_user!
before_action :set_albums, only: :index
before_action :set_album, only: [:show, :update, :destroy]
def index
render json: @albums, each_serializer: REST::AlbumSerializer
end
def create
@album = "" #current_account.custom_filters.create!(resource_params)
@album = current_account.media_attachment_albums.create!(resource_params)
render json: @album, serializer: REST::AlbumSerializer
end
@@ -30,15 +26,11 @@ class Api::V1::AlbumsController < Api::BaseController
private
def set_albums
@albums = "" #current_account.custom_filters
end
def set_album
@album = "" # current_account.custom_filters.find(params[:id])
@album = current_account.media_attachment_albums.find(params[:id])
end
def resource_params
params.permit(:title, :description, :visibility)
params.permit(:title, :description)
end
end