api endpoint implemented

This commit is contained in:
Volobue committed 2026-05-25 20:07:05 +03:00
1 parent 0fdeb34f1a
commit b74ebafb8f
9 files changed
+383 -1

No files matched your search

+3
View File
@@ -49,6 +49,9 @@ class TemplatesRepository(BaseRepository):
super().__init__(db_session)
def configs_path(self) -> str:
return os.path.join(os.getcwd(), "configs")
async def get_template(self, template_id: UUID) -> Union[None, models.Template]:
query = select(models.Template).\