initial commit
This commit is contained in:
14
handlers/handlers.go
Normal file
14
handlers/handlers.go
Normal 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"})
|
||||
}
|
Reference in New Issue
Block a user