diff options
Diffstat (limited to 'src/post')
| -rw-r--r-- | src/post/controller.go | 14 | ||||
| -rw-r--r-- | src/post/post_model.go | 15 |
2 files changed, 0 insertions, 29 deletions
diff --git a/src/post/controller.go b/src/post/controller.go deleted file mode 100644 index 561e9b3..0000000 --- a/src/post/controller.go +++ /dev/null @@ -1,14 +0,0 @@ -package post - -import ( - "net/http" - - "github.com/go-chi/chi/v5" -) - -func Create() { - r := chi.NewRouter() - r.Get("/", func(w http.ResponseWriter, r *http.Request) { - w.Write([]byte("Yello There!")) - }) -} diff --git a/src/post/post_model.go b/src/post/post_model.go deleted file mode 100644 index fc5dc2a..0000000 --- a/src/post/post_model.go +++ /dev/null @@ -1,15 +0,0 @@ -package post - -import ( - "time" - - "gitlab.com/alexkavon/newsstand/src/user" -) - -type Post struct { - Title string `json:"title"` - Body string `json:"body"` - User user.User `json:"user"` - Created time.Time `json:"created"` - Updated time.Time `json:"updated"` -} |
