epistery 1.2.2 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.mjs +4 -4
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -42,7 +42,7 @@ class EpisteryAttach {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
async attach(app,rootPath) {
|
|
45
|
-
this.rootPath = rootPath || '
|
|
45
|
+
this.rootPath = rootPath || '/.well-known/epistery';
|
|
46
46
|
app.locals.epistery = this;
|
|
47
47
|
|
|
48
48
|
app.use(async (req, res, next) => {
|
|
@@ -96,7 +96,7 @@ class EpisteryAttach {
|
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* Get a list for the current server domain
|
|
99
|
-
* @param {string} listName - Name of the list (e.g., "
|
|
99
|
+
* @param {string} listName - Name of the list (e.g., "example.com::admin")
|
|
100
100
|
* @returns {Promise<Array>} Array of list entries
|
|
101
101
|
*/
|
|
102
102
|
async getList(listName) {
|
|
@@ -1267,7 +1267,7 @@ class EpisteryAttach {
|
|
|
1267
1267
|
}
|
|
1268
1268
|
});
|
|
1269
1269
|
|
|
1270
|
-
// Get a specific list by name (query param: ?list=
|
|
1270
|
+
// Get a specific list by name (query param: ?list=example.com::admin)
|
|
1271
1271
|
router.get('/list', async (req, res) => {
|
|
1272
1272
|
try {
|
|
1273
1273
|
const listName = req.query.list;
|
|
@@ -1290,7 +1290,7 @@ class EpisteryAttach {
|
|
|
1290
1290
|
}
|
|
1291
1291
|
});
|
|
1292
1292
|
|
|
1293
|
-
// Check if address is on a specific list (query param: ?list=
|
|
1293
|
+
// Check if address is on a specific list (query param: ?list=example.com::admin)
|
|
1294
1294
|
router.get('/list/check/:address', async (req, res) => {
|
|
1295
1295
|
try {
|
|
1296
1296
|
const { address } = req.params;
|
package/package.json
CHANGED