// SPDX-FileCopyrightText: 2024 John Livingston // // SPDX-License-Identifier: AGPL-3.0-only import type { RegisterClientOptions } from '@peertube/peertube-types/client' import { html, render } from 'lit' import './elements' // Import all needed elements. /** * Registers stuff related to mod_firewall configuration. * @param clientOptions Peertube client options */ async function registerAdminFirewall (clientOptions: RegisterClientOptions): Promise { const { registerClientRoute } = clientOptions registerClientRoute({ route: 'livechat/admin/firewall', onMount: async ({ rootEl }) => { render(html``, rootEl) } }) } export { registerAdminFirewall }