From 28ea423dc6561a6680ef411b38b31273592fdaf3 Mon Sep 17 00:00:00 2001 From: Jake Lumetta Date: Tue, 16 Apr 2019 10:53:32 -0500 Subject: [PATCH] Adding serialization for Page.PageType --- page.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/page.go b/page.go index 35126d2..053e472 100644 --- a/page.go +++ b/page.go @@ -1,6 +1,7 @@ package ButterCMS type Page struct { - Slug string `json:"slug"` - Fields map[string]interface{} `json:"fields"` + Slug string `json:"slug"` + PageType string `json:"page_type"` + Fields map[string]interface{} `json:"fields"` }