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 f00d860d9c
commit d33a59e2b0
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",
})
},
})