mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix discovery endpoint route
This commit is contained in:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user