mirror of
https://codeberg.org/SafeTwitch/safetwitch-backend.git
synced 2024-12-22 13:13:00 -05:00
16 lines
278 B
Go
16 lines
278 B
Go
|
package root
|
||
|
|
||
|
import (
|
||
|
"safetwitch-backend/extractor"
|
||
|
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
func Routes(route *gin.Engine) {
|
||
|
auth := route.Group("/")
|
||
|
|
||
|
auth.GET("/", func(context *gin.Context) {
|
||
|
context.JSON(200, extractor.FormatMessage("SafeTwitch backend running", true))
|
||
|
})
|
||
|
}
|