diff --git a/news/static/browse.html b/news/static/browse.html
index 7497d04..6e299de 100644
--- a/news/static/browse.html
+++ b/news/static/browse.html
@@ -124,7 +124,7 @@
toggleLoader(true);
try{
- const url = new URL('/api/articles', window.location.origin);
+ const url = new URL('/news/api/articles', window.location.origin);
if (lastId !== undefined) url.searchParams.set('last', lastId);
url.searchParams.set("count", "5")
diff --git a/news/static/index.html b/news/static/index.html
index 3439cef..c41fd5d 100644
--- a/news/static/index.html
+++ b/news/static/index.html
@@ -115,7 +115,7 @@
const errorEl = document.getElementById('error');
// Change this to the full path of your API if it differs
- const ENDPOINT = '/api/articles?count=25';
+ const ENDPOINT = '/news/api/articles?count=25';
fetch(ENDPOINT)
.then(res => {
diff --git a/news/static/search.html b/news/static/search.html
index 7061068..bbae057 100644
--- a/news/static/search.html
+++ b/news/static/search.html
@@ -230,7 +230,7 @@
toggleLoader(true);
try{
- const url = new URL('/api/search', window.location.origin);
+ const url = new URL('/news/api/search', window.location.origin);
url.searchParams.set('text', currentQuery);
url.searchParams.set('count', PAGE_SIZE);
if (lastId !== undefined) url.searchParams.set('last', lastId);
diff --git a/news/static/view.html b/news/static/view.html
index e1a4928..c39e5d3 100644
--- a/news/static/view.html
+++ b/news/static/view.html
@@ -218,7 +218,7 @@
(function main(){
const qs = new URLSearchParams(window.location.search);
const url = qs.get('url');
- const API = '/api/view_article?url=' + encodeURIComponent(url ?? '');
+ const API = '/news/api/view_article?url=' + encodeURIComponent(url ?? '');
const elTopics = document.getElementById('topics');
const elSummary = document.getElementById('summary');