Fix discovery endpoint route

This commit is contained in:
Cohee
2023-12-04 21:54:03 +02:00
parent 3085dbe12c
commit aff821aa07

View File

@@ -216,7 +216,7 @@ router.post('/delete', jsonParser, async (request, response) => {
* Discover the extension folders * Discover the extension folders
* If the folder is called third-party, search for subfolders instead * If the folder is called third-party, search for subfolders instead
*/ */
router.get('/api/extensions/discover', jsonParser, function (_, response) { router.get('/discover', jsonParser, function (_, response) {
// get all folders in the extensions folder, except third-party // get all folders in the extensions folder, except third-party
const extensions = fs const extensions = fs
.readdirSync(DIRECTORIES.extensions) .readdirSync(DIRECTORIES.extensions)