import { auth } from "../middleware/auth.js";
import { MastoApiError } from "../middleware/catch-errors.js";
export function setupEndpointsFilter(router) {
    router.get([
        "/v1/filters",
        "/v2/filters"
    ], auth(true, [
        'read:filters'
    ]), async (ctx)=>{
        ctx.body = [];
    });
    router.post([
        "/v1/filters",
        "/v2/filters"
    ], auth(true, [
        'write:filters'
    ]), async (ctx)=>{
        throw new MastoApiError(400, "Please change word mute settings in the web frontend settings.");
    });
}
