feat: add support for the HTTP handler
This commit is contained in:
parent
70b3465674
commit
619700d0ea
2 changed files with 8 additions and 3 deletions
|
@ -1,5 +1,7 @@
|
|||
from .hetzner import HetznerHandler
|
||||
from .http import HTTPHandler
|
||||
|
||||
__all__ = [
|
||||
'HetznerHandler'
|
||||
'HetznerHandler',
|
||||
'HTTPHandler'
|
||||
]
|
||||
|
|
|
@ -7,13 +7,16 @@ from itertools import chain
|
|||
import dns.resolver
|
||||
|
||||
from .config import read_config
|
||||
from .handlers import HetznerHandler
|
||||
from .handlers import HetznerHandler, HTTPHandler
|
||||
|
||||
logging.basicConfig(level=logging.INFO, format='> [%(levelname)s] %(name)s: %(message)s')
|
||||
log = logging.getLogger('nyacme_hook')
|
||||
|
||||
|
||||
handlers = {'hetzner': HetznerHandler}
|
||||
handlers = {
|
||||
'hetzner': HetznerHandler,
|
||||
'http': HTTPHandler,
|
||||
}
|
||||
|
||||
|
||||
def main() -> None:
|
||||
|
|
Loading…
Reference in a new issue