WIP refactor

This commit is contained in:
2023-04-23 12:06:16 -05:00
parent 4c4cb051d8
commit 642f96f9ca
74 changed files with 1901 additions and 292 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