testing update + docs
This commit is contained in:
@@ -1,6 +1,19 @@
|
||||
//go:build test
|
||||
// +build test
|
||||
|
||||
// Package admin contains tests for admin service management endpoints.
|
||||
//
|
||||
// Test Coverage:
|
||||
// - CreateServiceHandler: POST /api/admin/services - Create new service
|
||||
// - AllServicesHandler: GET /api/admin/services - List all services (incl. inactive)
|
||||
// - ToggleService: PUT /api/admin/services/{id}/toggle - Toggle service active status
|
||||
// - DeleteServiceHandler: DELETE /api/admin/services/{id} - Soft delete service
|
||||
//
|
||||
// Authentication: All endpoints require admin role (403 for non-admins).
|
||||
package admin
|
||||
//go:build test
|
||||
// +build test
|
||||
|
||||
package admin
|
||||
|
||||
import (
|
||||
|
||||
Reference in New Issue
Block a user