swagger doc add bearer auth
This commit is contained in:
@@ -40,6 +40,12 @@ func gracefulShutdown(apiServer *http.Server, done chan bool) {
|
||||
// @description Dokumentasi API Antrian Operasi
|
||||
// @host localhost:8080
|
||||
// @BasePath /api
|
||||
|
||||
// @securityDefinitions.apikey BearerAuth
|
||||
// @in header
|
||||
// @name Authorization
|
||||
|
||||
// @security BearerAuth
|
||||
func main() {
|
||||
log.Println("Starting API Service...")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user