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 @@ - + - - + OCBO e-Sign Server -

OCBO e-Sign Server is running

diff --git a/index.html b/index.html index 14fe9d9..80c2ae7 100644 --- a/index.html +++ b/index.html @@ -12,7 +12,7 @@ - + OCBO e-Sign diff --git a/src/utils/functions/index.ts b/src/utils/functions/index.ts index 70ecba6..090672c 100644 --- a/src/utils/functions/index.ts +++ b/src/utils/functions/index.ts @@ -1,5 +1,3 @@ export { default as checkConnection } from './checkConnection' export { default as createPdf } from './createPdf' -export { default as postApi } from './postApi' -export { default as getApi } from './getApi' // export { default as generateFavicon } from './generateFavicon'