✨ Post type
This commit is contained in:
@ -46,6 +46,7 @@ func createArticle(c *fiber.Ctx) error {
|
||||
_ = jsoniter.Unmarshal(rawBody, &bodyMapping)
|
||||
|
||||
item := models.Post{
|
||||
Type: models.PostTypeArticle,
|
||||
Body: bodyMapping,
|
||||
Tags: data.Tags,
|
||||
Categories: data.Categories,
|
||||
|
@ -48,6 +48,7 @@ func createStory(c *fiber.Ctx) error {
|
||||
_ = jsoniter.Unmarshal(rawBody, &bodyMapping)
|
||||
|
||||
item := models.Post{
|
||||
Type: models.PostTypeStory,
|
||||
Body: bodyMapping,
|
||||
Tags: data.Tags,
|
||||
Categories: data.Categories,
|
||||
|
Reference in New Issue
Block a user