Coverage for an_website/element_web_link/element_web_link.py: 0.000%
5 statements
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-16 19:56 +0000
« prev ^ index » next coverage.py v7.6.4, created at 2024-11-16 19:56 +0000
1# This program is free software: you can redistribute it and/or modify
2# it under the terms of the GNU Affero General Public License as
3# published by the Free Software Foundation, either version 3 of the
4# License, or (at your option) any later version.
5#
6# This program is distributed in the hope that it will be useful,
7# but WITHOUT ANY WARRANTY; without even the implied warranty of
8# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9# GNU Affero General Public License for more details.
10#
11# You should have received a copy of the GNU Affero General Public License
12# along with this program. If not, see <https://www.gnu.org/licenses/>.
14"""A redirect to the Matrix client."""
16from __future__ import annotations
18from tornado.web import RedirectHandler
20from ..utils.utils import ModuleInfo
23def get_module_info() -> ModuleInfo:
24 """Create and return the ModuleInfo for this module."""
25 return ModuleInfo(
26 handlers=(
27 ("/chat/*", RedirectHandler, {"url": "https://chat.asozial.org"}),
28 ),
29 name="Asozialer Chat",
30 description="Matrix-Web-Client basierend auf Element",
31 path="/chat",
32 keywords=("Chat", "Matrix", "Element"),
33 aliases=("/element",),
34 )