chore: add code for 2 handlers with GET
Some checks failed
Backend ci / build (push) Failing after 36m27s

This commit is contained in:
d3m0k1d
2026-02-03 19:41:18 +03:00
parent 440b836d54
commit 44406b02d3
4 changed files with 43 additions and 9 deletions

View File

@@ -6,3 +6,8 @@ type Post struct {
Content string `db:"content"`
CreatedAt string `db:"created_at"`
}
type PostReq struct {
Title string `json:"title"`
Content string `json:"content"`
}