xonecas.io
494
Ip

image-pal / files

image-pal / cmd / main.go

282 bytes
1package main
2
3import (
4	"github.com/gin-gonic/gin"
5	imagePal "github.com/sacenox/image-pal/internal"
6)
7
8func main() {
9	r := gin.Default()
10
11	r.GET("/health", func(c *gin.Context) {
12		c.JSON(200, gin.H{
13			"health": "ok",
14		})
15	})
16
17	r.GET("/resize", imagePal.ResizeRoute)
18
19	r.Run()
20}