add personal information service

This commit is contained in:
andrusyakka
2023-07-24 16:00:56 +03:00
parent fdc25b46fb
commit f01ac2e42a
3 changed files with 61 additions and 6 deletions

View File

@@ -5,6 +5,7 @@ import (
"astra-api-gateway/handler"
"astra-api-gateway/mw"
"astra-api-gateway/services/events"
"astra-api-gateway/services/personal-information"
"astra-api-gateway/services/store"
"astra-api-gateway/services/users"
"github.com/joho/godotenv"
@@ -51,6 +52,11 @@ func main() {
e.POST("/events", events.CreateEvent)
e.DELETE("/events", events.DeleteEvent)
// Persons
e.GET("/persons", personal_information.GetPDList)
e.GET("/persons/:id", personal_information.GetPD)
e.POST("/persons", personal_information.CreatePD)
// Store
store_g := e.Group("/store")
store_g.GET("/*", store.GetFileFromStore)