Fix media endpoints
This commit is contained in:
@@ -3,7 +3,7 @@ module Adamantium
|
||||
module Media
|
||||
class Create < Action
|
||||
include Deps["commands.media.upload"]
|
||||
before :authorize!
|
||||
before :authenticate!
|
||||
|
||||
def handle(req, res)
|
||||
data = req.params[:file]
|
||||
|
@@ -7,7 +7,7 @@ module Adamantium
|
||||
def handle(req, res)
|
||||
res.body = if req.params[:q] == "source"
|
||||
{
|
||||
items: media_url(params[:file])
|
||||
items: media_url(req.params[:file])
|
||||
}.to_json
|
||||
else
|
||||
"Micropub media endpoint"
|
||||
|
Reference in New Issue
Block a user