Fixed naming
This commit is contained in:
15
controllers/simple_controller.go
Normal file
15
controllers/simple_controller.go
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Created by VoidArtanis on 10/22/2017
|
||||
*/
|
||||
|
||||
package controllers
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
func GetSecretText(c *gin.Context){
|
||||
c.JSON(200, "Hi this is a secret message. Auth was successful!")
|
||||
}
|
||||
|
||||
func GetPublicText(c *gin.Context){
|
||||
c.JSON(200, "Hi this is a public message!")
|
||||
}
|
||||
Reference in New Issue
Block a user