add store service
This commit is contained in:
5
main.go
5
main.go
@@ -4,6 +4,7 @@ import (
|
||||
"astra-api-gateway/config"
|
||||
"astra-api-gateway/handler"
|
||||
"astra-api-gateway/mw"
|
||||
"astra-api-gateway/services/store"
|
||||
"astra-api-gateway/services/users"
|
||||
"github.com/joho/godotenv"
|
||||
"github.com/labstack/echo/v4"
|
||||
@@ -39,6 +40,10 @@ func main() {
|
||||
e.DELETE("/users/:id", users.DeleteUser)
|
||||
e.PATCH("/users/:id", users.UpdateUser)
|
||||
|
||||
// Store
|
||||
store_g := e.Group("/store")
|
||||
store_g.GET("/*", store.GetFileFromStore)
|
||||
|
||||
e.Logger.Fatal(e.Start(":" + config.Env.Server.Port))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user