2024-10-07 15:25:13 +05:30
|
|
|
package controller
|
|
|
|
|
|
|
|
import (
|
2024-10-07 16:26:41 +05:30
|
|
|
"net/http"
|
2024-10-07 15:25:13 +05:30
|
|
|
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
)
|
|
|
|
|
|
|
|
func Teardown(c *gin.Context) {
|
|
|
|
|
|
|
|
// Close connection
|
2024-10-07 16:26:41 +05:30
|
|
|
err := client.Teardown(c)
|
2024-10-07 15:25:13 +05:30
|
|
|
if err != nil {
|
|
|
|
c.Status(http.StatusInternalServerError)
|
|
|
|
return
|
|
|
|
}
|
|
|
|
c.Status(http.StatusOK)
|
|
|
|
|
|
|
|
}
|