mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-11 14:07:09 +03:00
14 lines
358 B
TypeScript
14 lines
358 B
TypeScript
import { config } from "../config";
|
|
import { Request, Response } from "express";
|
|
|
|
export function getFeatureFlag(req: Request, res: Response): Response {
|
|
const { params: { name } } = req;
|
|
|
|
switch (name) {
|
|
case "deArrowPaywall":
|
|
return res.status(200).json({
|
|
enabled: config.deArrowPaywall,
|
|
});
|
|
}
|
|
}
|