Implement state export endpoint

This commit is contained in:
Pijus Kamandulis
2024-02-23 00:27:12 +02:00
parent 16f41a5479
commit 332be181ef
4 changed files with 25 additions and 1 deletions

12
api/handlers/cosmium.go Normal file
View File

@@ -0,0 +1,12 @@
package handlers
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/pikami/cosmium/internal/repositories"
)
func CosmiumExport(c *gin.Context) {
c.IndentedJSON(http.StatusOK, repositories.GetState())
}