feat: Add Method not Allowed handling for generate API and imporove error handling

Refs: OPS-12
This commit is contained in:
Alivecow 2025-03-03 15:36:03 +01:00
parent 0243091b76
commit edf145c8de
8 changed files with 53 additions and 28 deletions

View file

@ -1,5 +1,8 @@
from dataclasses import dataclass
from __future__ import annotations
import json
from dataclasses import dataclass
@dataclass
class Haiku:
@ -7,4 +10,3 @@ class Haiku:
def get_json(self):
return json.dumps(self.lines)