Update the JSON API endpoint to /authors for Author.

This commit is contained in:
2025-04-02 09:31:30 +03:00
parent 71c7ce3501
commit 6a6987bee6
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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