This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
api/router/v1/image.go
2022-12-25 23:14:45 +01:00

16 lines
255 B
Go

package v1
import (
"gractwo-api/database"
"github.com/gin-gonic/gin"
)
func GetImages(c *gin.Context){
var ImageList []database.Image
err :=database.DB.Find(&ImageList).Error
if err != nil {
c.JSON(404, "Not found")
}
c.JSON(200, ImageList)
}