update to support postgresql and add godocs
This commit is contained in:
@@ -6,7 +6,14 @@ import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
// VmUpdate receives the CloudEvent for a VM modification or move
|
||||
// UpdateCleanup removes orphaned update records.
|
||||
// @Summary Cleanup updates
|
||||
// @Description Removes update records that are no longer associated with a VM.
|
||||
// @Tags maintenance
|
||||
// @Produce text/plain
|
||||
// @Success 200 {string} string "Cleanup completed"
|
||||
// @Failure 500 {string} string "Server error"
|
||||
// @Router /api/cleanup/updates [delete]
|
||||
func (h *Handler) UpdateCleanup(w http.ResponseWriter, r *http.Request) {
|
||||
/*
|
||||
// Get the current time
|
||||
|
||||
Reference in New Issue
Block a user