Files
ordr/api/controllers/testController.go
2025-11-09 21:20:36 -07:00

17 lines
333 B
Go

package controllers
import (
"net/http"
"github.com/gin-gonic/gin"
)
func BaseFunction(context *gin.Context) {
user_profile, _ := context.Get("user_profile")
context.IndentedJSON(http.StatusOK, user_profile)
}
func PublicEndpoint(context *gin.Context) {
context.String(http.StatusOK, "Public endpoint for you to land at")
}