aboutsummaryrefslogtreecommitdiff
path: root/src/post/controller.go
diff options
context:
space:
mode:
authorAlexander Kavon <hawk@alexkavon.com>2023-11-14 01:00:21 -0500
committerAlexander Kavon <hawk@alexkavon.com>2023-11-14 01:00:21 -0500
commit60f4a3e21f186d7bbc6e1f3239dc2dc06fa1ffac (patch)
tree180f17411afd50958e601e4dc1bafca70702d073 /src/post/controller.go
parent699e1edf05207f906583659fb250269ad5ec1f36 (diff)
new packages for users, posts, server
Diffstat (limited to 'src/post/controller.go')
-rw-r--r--src/post/controller.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/post/controller.go b/src/post/controller.go
new file mode 100644
index 0000000..561e9b3
--- /dev/null
+++ b/src/post/controller.go
@@ -0,0 +1,14 @@
+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!"))
+ })
+}