mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-09 04:57:04 +03:00
16 lines
394 B
TypeScript
16 lines
394 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,
|
|
});
|
|
}
|
|
|
|
return res.status(404).json();
|
|
}
|