chore: add code for 2 handlers with GET
Some checks failed
Backend ci / build (push) Failing after 36m27s
Some checks failed
Backend ci / build (push) Failing after 36m27s
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user