Skip to content
Snippets Groups Projects
Commit 53e3b70c authored by Tucker Gary Siegel's avatar Tucker Gary Siegel
Browse files

updates

parent 00387092
No related branches found
No related tags found
No related merge requests found
# Weather server # GDD server
Used to serve gdd, cfs, and gefs data, and can be expanded to more data Used to serve gdd, cfs, and gefs data, and can be expanded to more data
...@@ -12,4 +12,4 @@ Build to executable: `go build` ...@@ -12,4 +12,4 @@ Build to executable: `go build`
To rebuild swagger: `swag init` To rebuild swagger: `swag init`
Swagger [Here](http://localhost:8080/api/weather/swagger/index.html#/) Swagger [Here](http://localhost:8080/api/weather/gdd-swagger/index.html#/)
\ No newline at end of file \ No newline at end of file
...@@ -9,4 +9,4 @@ server: ...@@ -9,4 +9,4 @@ server:
db: db:
uri: "mongodb://127.0.0.1:27017/" uri: "mongodb://127.0.0.1:27017/"
database: "weather-service" database: "gdd-service"
...@@ -25,8 +25,8 @@ func registerRoutes(app *fiber.App) { ...@@ -25,8 +25,8 @@ func registerRoutes(app *fiber.App) {
} }
func registerSwagger(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")+"/gdd-swagger/*", swagger.Handler)
app.Get(viper.GetString("server.context-path")+"/swagger/*", swagger.New()) app.Get(viper.GetString("server.context-path")+"/gdd-swagger/*", swagger.New())
} }
func registerCors(app *fiber.App) { func registerCors(app *fiber.App) {
...@@ -46,16 +46,6 @@ func registerLogging(app *fiber.App) { ...@@ -46,16 +46,6 @@ func registerLogging(app *fiber.App) {
ContextKey: "requestId", 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()) app.Use(logger.New())
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment