penambahan data lis

This commit is contained in:
2025-08-26 08:27:29 +07:00
parent ac12d30dee
commit 683d8c9ed1
13 changed files with 523 additions and 40 deletions

View File

@@ -9,9 +9,26 @@ import (
"syscall"
"time"
_ "api-lis/cmd/api/docs"
"api-lis/internal/server"
)
// @title API Service
// @version 1.0.0
// @description A comprehensive Go API service with Swagger documentation
// @termsOfService http://swagger.io/terms/
// @contact.name API Support
// @contact.url http://www.swagger.io/support
// @contact.email support@swagger.io
// @license.name Apache 2.0
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
// @host localhost:8080
// @BasePath /api
// @schemes http https
func gracefulShutdown(apiServer *http.Server, done chan bool) {
// Create context that listens for the interrupt signal from the OS.
ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)