initiate swagger docs
This commit is contained in:
@@ -10,6 +10,8 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
_ "antrian-operasi/docs"
|
||||
|
||||
"github.com/joho/godotenv"
|
||||
)
|
||||
|
||||
@@ -33,6 +35,11 @@ func gracefulShutdown(apiServer *http.Server, done chan bool) {
|
||||
done <- true
|
||||
}
|
||||
|
||||
// @title Antrian Operasi API
|
||||
// @version 1.0
|
||||
// @description Dokumentasi API Antrian Operasi
|
||||
// @host localhost:8080
|
||||
// @BasePath /api
|
||||
func main() {
|
||||
log.Println("Starting API Service...")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user