mirror of
https://github.com/danbee/micropub.git
synced 2025-03-04 08:59:13 +00:00
The IndieWeb API has changed
This commit is contained in:
parent
2dac20c0b4
commit
b86481345a
@ -1,7 +1,11 @@
|
|||||||
module Indieauth
|
module Indieauth
|
||||||
class Endpoints
|
class Endpoints
|
||||||
def initialize(site_url)
|
def initialize(site_url)
|
||||||
@endpoints = IndieWeb::Endpoints.get(site_url)
|
@site_url = site_url
|
||||||
|
end
|
||||||
|
|
||||||
|
def endpoints
|
||||||
|
client.endpoints
|
||||||
end
|
end
|
||||||
|
|
||||||
def method_missing(method)
|
def method_missing(method)
|
||||||
@ -10,6 +14,10 @@ module Indieauth
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
attr_accessor :endpoints
|
def client
|
||||||
|
IndieWeb::Endpoints::Client.new(site_url)
|
||||||
|
end
|
||||||
|
|
||||||
|
attr_accessor :site_url
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user