diff --git a/README.md b/README.md index 71d91b03b4b821de99ebfd306a1ba98d3a48cbb3..9662a36b8027dd396a2eafad08880504b65ba9f1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Weather server +# GDD server Used to serve gdd, cfs, and gefs data, and can be expanded to more data @@ -12,4 +12,4 @@ Build to executable: `go build` To rebuild swagger: `swag init` -Swagger [Here](http://localhost:8080/api/weather/swagger/index.html#/) \ No newline at end of file +Swagger [Here](http://localhost:8080/api/weather/gdd-swagger/index.html#/) \ No newline at end of file diff --git a/config/local b/config/local index a0d3588a4b945bb2c53e832287692d9d4cdfc23c..5cfc075dd9368c46ac01f21dbc4a714872c6ba5a 100644 --- a/config/local +++ b/config/local @@ -9,4 +9,4 @@ server: db: uri: "mongodb://127.0.0.1:27017/" - database: "weather-service" + database: "gdd-service" diff --git a/main.go b/main.go index 8ae99a5ac86ef69cebabce47d5bcc7d6a0ec884e..c12dbe948fd88dc4b0c79f5060f73d5b57e16283 100644 --- a/main.go +++ b/main.go @@ -25,8 +25,8 @@ func registerRoutes(app *fiber.App) { } func registerSwagger(app *fiber.App) { - app.Get(viper.GetString("server.context-path")+"/swagger/*", swagger.Handler) - app.Get(viper.GetString("server.context-path")+"/swagger/*", swagger.New()) + app.Get(viper.GetString("server.context-path")+"/gdd-swagger/*", swagger.Handler) + app.Get(viper.GetString("server.context-path")+"/gdd-swagger/*", swagger.New()) } func registerCors(app *fiber.App) { @@ -46,16 +46,6 @@ func registerLogging(app *fiber.App) { ContextKey: "requestId", })) - // app.Use(logger.New(logger.Config{ - // Format: "${pid} ${locals:requestId} ${status} - ${method} ${path}\n", - // })) - - // app.Use(func(c *fiber.Ctx) error { - // fmt.Println(c.Response().StatusCode()) - // fmt.Println("hey!") - // return c.Next() - // }) - app.Use(logger.New()) }