mirror of
https://github.com/senju1337/senju.git
synced 2025-12-24 15:49:29 +00:00
feat: Add Method not Allowed handling for generate API and imporove error handling
Refs: OPS-12
This commit is contained in:
parent
0243091b76
commit
edf145c8de
8 changed files with 53 additions and 28 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue