diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-11 17:17:26 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-11 17:17:26 +0530 |
commit | 671c3a765ffc53575f517cef715dc16be5aa43c5 (patch) | |
tree | 4f6d7ea1059f339bef6e245638fdb52cd0363844 /server/main.go | |
parent | 33c10cfa027d769c1d02a54bad766f431b1196ee (diff) |
cleaned up some code and fixed formatter for the client name/address
Diffstat (limited to 'server/main.go')
-rw-r--r-- | server/main.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/main.go b/server/main.go index 8b400fe..e6c70e6 100644 --- a/server/main.go +++ b/server/main.go @@ -81,9 +81,10 @@ func getAllPeople(ctx *gin.Context) { func registerPerson(ctx *gin.Context) { person := db.Person { - Name: ctx.Query("name"), - Phone: ctx.Query("phone"), - Email: ctx.Query("email"), + Name: ctx.Query("name"), + Address: ctx.Query("address"), + Phone: ctx.Query("phone"), + Email: ctx.Query("email"), } db.RegisterPerson(person) |