aboutsummaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
authorGravatar Pascal Noisette <netpascal0123@aol.com> 2022-01-27 05:29:37 +0100
committerGravatar GitHub <noreply@github.com> 2022-01-26 20:29:37 -0800
commit21bbaf26918db00bed6f37176ac3ce77febc5dd1 (patch)
tree721e2d1a4777587a70b8f38de3021f3b0e45bd53 /api/api.go
parent50c5850f0da9640817a65b25a45360f3ad31a466 (diff)
downloadv2-21bbaf26918db00bed6f37176ac3ce77febc5dd1.tar.gz
v2-21bbaf26918db00bed6f37176ac3ce77febc5dd1.tar.zst
v2-21bbaf26918db00bed6f37176ac3ce77febc5dd1.zip
Add API endpoint to fetch original article
Diffstat (limited to 'api/api.go')
-rw-r--r--api/api.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/api/api.go b/api/api.go
index 0aaba5a7..4a186d6c 100644
--- a/api/api.go
+++ b/api/api.go
@@ -62,4 +62,5 @@ func Serve(router *mux.Router, store *storage.Storage, pool *worker.Pool) {
sr.HandleFunc("/entries", handler.setEntryStatus).Methods(http.MethodPut)
sr.HandleFunc("/entries/{entryID}", handler.getEntry).Methods(http.MethodGet)
sr.HandleFunc("/entries/{entryID}/bookmark", handler.toggleBookmark).Methods(http.MethodPut)
+ sr.HandleFunc("/entries/{entryID}/fetch-content", handler.fetchContent).Methods(http.MethodGet)
}