From 53e3b70ca5b50610e5361c41fc2a88b4578506d0 Mon Sep 17 00:00:00 2001
From: Tucker Gary Siegel <tgsiegel@terpmail.umd.edu>
Date: Wed, 18 Aug 2021 17:56:44 -0400
Subject: [PATCH] updates

---
 README.md    |  4 ++--
 config/local |  2 +-
 main.go      | 14 ++------------
 3 files changed, 5 insertions(+), 15 deletions(-)

diff --git a/README.md b/README.md
index 71d91b0..9662a36 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 a0d3588..5cfc075 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 8ae99a5..c12dbe9 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())
 }
 
-- 
GitLab