Update the JSON API endpoint to /authors for Author.
This commit is contained in:
@@ -14,7 +14,7 @@ defmodule DecentralisedBookIndex.Metadata do
|
||||
related :publisher, :read, primary?: true
|
||||
end
|
||||
|
||||
base_route "/author", Metadata.Author do
|
||||
base_route "/authors", Metadata.Author do
|
||||
get :read
|
||||
index :search
|
||||
end
|
||||
|
||||
@@ -6,7 +6,7 @@ defmodule DecentralisedBookIndex.SyncTasks.SyncAuthorsTask do
|
||||
alias DecentralisedBookIndex.Metadata.DBIServer
|
||||
|
||||
def sync(%DBIServer{} = server) do
|
||||
url = "#{server.url}/api/v1/json/author"
|
||||
url = "#{server.url}/api/v1/json/authors"
|
||||
FetchJsons.get(url, sync_author_closure(server))
|
||||
|
||||
server
|
||||
|
||||
Reference in New Issue
Block a user