feat: user CRUD
This commit is contained in:
16
api/controllers/testController.go
Normal file
16
api/controllers/testController.go
Normal file
@@ -0,0 +1,16 @@
|
||||
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")
|
||||
}
|
||||
Reference in New Issue
Block a user