Add API endpoint to fetch list of plugins to core API

This commit is contained in:
Andrew Kingston 2022-08-11 15:28:19 +01:00
parent dff1cec9e0
commit 66ab9dcc8b
1 changed files with 9 additions and 0 deletions

View File

@ -10,4 +10,13 @@ export const buildPluginEndpoints = API => ({
json: false,
})
},
/**
* Gets a list of all plugins
*/
getPlugins: async () => {
return await API.get({
url: "/api/plugin",
})
},
})