diff options
author | 2022-01-27 05:29:37 +0100 | |
---|---|---|
committer | 2022-01-26 20:29:37 -0800 | |
commit | 21bbaf26918db00bed6f37176ac3ce77febc5dd1 (patch) | |
tree | 721e2d1a4777587a70b8f38de3021f3b0e45bd53 /api/api.go | |
parent | 50c5850f0da9640817a65b25a45360f3ad31a466 (diff) | |
download | v2-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.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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) } |