moved utils --> libs

This commit is contained in:
2024-01-11 19:35:04 -06:00
parent 7e9dd31d01
commit 1876ba3fd0
24 changed files with 17 additions and 17 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