add personal information service
This commit is contained in:
6
main.go
6
main.go
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user