aboutsummaryrefslogtreecommitdiff
path: root/server/main.go
diff options
context:
space:
mode:
authorMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-05-02 19:50:39 +0530
committerMikunoNaka <bokuwakanojogahoshii@yahoo.com>2021-05-02 19:50:39 +0530
commitc7768652ed63e408e19c7e68d2ab8e78c70da94f (patch)
tree567f8430af60b364525a7404ddc181bac00e4113 /server/main.go
parent17ea30faae3c3b0ab1d58bbeb6c1a6a404639817 (diff)
defined (working) api route to register a new client/person
Diffstat (limited to 'server/main.go')
-rw-r--r--server/main.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/main.go b/server/main.go
index 1740ac6..49d8c45 100644
--- a/server/main.go
+++ b/server/main.go
@@ -41,6 +41,7 @@ func main() {
// people API routes
people.GET("/", getAllPeople)
+ people.POST("/", registerPerson)
myRouter.Run(":8080")
}