dashboardwireguard-dashboardwireguardwg-managervpnsite-to-siteobfuscationwireguard-vpn-setupwireguard-vpnwireguard-tunnel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
476 B
14 lines
476 B
from loguru import logger
|
|
from fastapi import HTTPException
|
|
import os
|
|
from jinja2 import Environment, FileSystemLoader
|
|
|
|
templates_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'templates')
|
|
jinja_env = Environment(loader=FileSystemLoader(templates_path))
|
|
|
|
|
|
class WGMHTTPException(HTTPException):
|
|
|
|
def __init__(self, status_code: int, detail: str = None):
|
|
HTTPException.__init__(self, status_code, detail)
|
|
logger.opt(depth=1).error(detail)
|
|
|