mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-07 03:57:06 +03:00
getLockCategoresByHash
This commit is contained in:
@@ -34,6 +34,7 @@ import { addUnlistedVideo } from './routes/addUnlistedVideo';
|
||||
import {postPurgeAllSegments} from './routes/postPurgeAllSegments';
|
||||
import {getUserID} from './routes/getUserID';
|
||||
import {getLockCategories} from './routes/getLockCategories';
|
||||
import {getLockCategoriesByHash} from './routes/getLockCategoriesByHash';
|
||||
import ExpressPromiseRouter from 'express-promise-router';
|
||||
|
||||
export function createServer(callback: () => void) {
|
||||
@@ -159,6 +160,9 @@ function setupRoutes(router: Router) {
|
||||
// get lock categores from userID
|
||||
router.get('/api/lockCategories', getLockCategories);
|
||||
|
||||
// get privacy protecting lock categories functions
|
||||
router.get('/api/lockCategories/:prefix', getLockCategoriesByHash);
|
||||
|
||||
if (config.postgres) {
|
||||
router.get('/database', (req, res) => dumpDatabase(req, res, true));
|
||||
router.get('/database.json', (req, res) => dumpDatabase(req, res, false));
|
||||
|
||||
Reference in New Issue
Block a user