Made match mostly new template patterns

This commit is contained in:
2024-03-15 20:20:52 -05:00
parent b6d2e9ec54
commit 4cbdf1432d
16 changed files with 143 additions and 112 deletions

View File

@@ -0,0 +1,22 @@
# Python imports
# Lib imports
# Application imports
from .singleton import Singleton
class EndpointRegistry(Singleton):
def __init__(self):
self._endpoints = {}
def register(self, rule, **options):
def decorator(f):
self._endpoints[rule] = f
return f
return decorator
def get_endpoints(self):
return self._endpoints