Add article facets endpoint and integrate into frontend
This commit is contained in:
@@ -85,6 +85,11 @@ export default {
|
||||
return response.data;
|
||||
},
|
||||
|
||||
async getArticleFacets() {
|
||||
const response = await api.get('/articles/facets');
|
||||
return response.data;
|
||||
},
|
||||
|
||||
async searchArticles(query) {
|
||||
const response = await api.get('/articles/search', {
|
||||
params: { q: query },
|
||||
|
||||
Reference in New Issue
Block a user