Added an API listener
All checks were successful
Build and Push Docker Image / testing (1.24.x, ubuntu-latest) (push) Successful in 2m30s
Build and Push Docker Image / build-and-push (push) Successful in 11m56s

This commit is contained in:
2025-04-30 18:34:57 -04:00
parent 1475c7911f
commit d01e6a050f
13 changed files with 445 additions and 25 deletions

View File

@ -0,0 +1,14 @@
package handlers
import (
"net/http"
"github.com/gin-gonic/gin"
"github.com/uptrace/bun"
)
var DB *bun.DB
func HomePage(ctx *gin.Context) {
ctx.JSON(http.StatusOK, gin.H{"message": "Welcome to the Receipt Tracker API"})
}