diff --git a/backend/main.go b/backend/main.go index 57d8102..79a4c38 100644 --- a/backend/main.go +++ b/backend/main.go @@ -61,8 +61,7 @@ func connect() { //SERVER // router.Use(cors.New(cors.Config{ - // //AllowAllOrigins: true, - // AllowOrigins: []string{"https://ocboapps.davaocity.gov.ph"}, + // AllowAllOrigins: true, // AllowMethods: []string{"GET", "POST"}, // AllowHeaders: []string{"Origin"}, // ExposeHeaders: []string{"Content-Length"}, @@ -70,8 +69,6 @@ func connect() { // })) router.StaticFile("/", "static/index.html") - router.StaticFile("/esign.webp", "static/esign.webp") - router.StaticFile("/favicon.png", "static/favicon.png") // shield := "inquiry" @@ -85,7 +82,7 @@ func connect() { c.Writer.Header().Set("X-Frame-Options", "DENY") c.Writer.Header().Set("X-Download-Options", "noopen") c.Writer.Header().Set("Referrer-Policy", "no-referrer") - c.Writer.Header().Set("X-Server", "OCBO Server") + c.Writer.Header().Set("Server", "OCBO Server") switch method { case "test": @@ -244,7 +241,7 @@ func connect() { headId := os.Getenv("HEADID") array := []string{} - results, err := db.Query("SELECT IFNULL(emp.employeename, '') AS result FROM esign e LEFT JOIN employee emp ON e.employeeid = emp.employeeid WHERE e.employeeid <> ?", headId) + results, err := db.Query("SELECT IFNULL(employeeid, 0) AS result FROM esign WHERE employeeid <> ?", headId) if err != nil { c.AbortWithError(http.StatusBadRequest, err) c.String(http.StatusBadRequest, err.Error()) diff --git a/backend/static/esign.webp b/backend/static/esign.webp deleted file mode 100644 index 8d7c407..0000000 Binary files a/backend/static/esign.webp and /dev/null differ diff --git a/backend/static/favicon.png b/backend/static/favicon.png deleted file mode 100644 index eabbfaf..0000000 Binary files a/backend/static/favicon.png and /dev/null differ diff --git a/backend/static/index.html b/backend/static/index.html index 63b3b54..7008cf4 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -2,36 +2,24 @@
- + - - +