delete and modify
This commit is contained in:
@@ -8,6 +8,7 @@ import (
|
|||||||
"serv_golang_rest_api/internal/middleware"
|
"serv_golang_rest_api/internal/middleware"
|
||||||
"serv_golang_rest_api/internal/repository"
|
"serv_golang_rest_api/internal/repository"
|
||||||
"serv_golang_rest_api/internal/service"
|
"serv_golang_rest_api/internal/service"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/go-chi/chi/v5"
|
"github.com/go-chi/chi/v5"
|
||||||
"gorm.io/gorm"
|
"gorm.io/gorm"
|
||||||
@@ -102,7 +103,7 @@ func (s *Server) healthCheck(w http.ResponseWriter, r *http.Request) {
|
|||||||
w.Header().Set("Content-Type", "application/json")
|
w.Header().Set("Content-Type", "application/json")
|
||||||
json.NewEncoder(w).Encode(map[string]string{
|
json.NewEncoder(w).Encode(map[string]string{
|
||||||
"status": "healthy",
|
"status": "healthy",
|
||||||
"timestamp": http.TimeFormat,
|
"timestamp": time.Now().UTC().Format(time.RFC1123),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +0,0 @@
|
|||||||
services:
|
|
||||||
spa:
|
|
||||||
container_name: spa
|
|
||||||
build:
|
|
||||||
context: ./spa
|
|
||||||
dockerfile: Dockerfile
|
|
||||||
env_file:
|
|
||||||
- .env
|
|
||||||
Reference in New Issue
Block a user