basic code setup
This commit is contained in:
11
controllers/auth.go
Normal file
11
controllers/auth.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func Register(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, gin.H{"data": "hello from controller!"})
|
||||
}
|
Reference in New Issue
Block a user