mirror of
https://github.com/Dvorinka/Trackeep.git
synced 2026-06-04 20:42:59 +00:00
first test
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/trackeep/backend/middleware"
|
||||
)
|
||||
|
||||
// DemoStatus returns the current demo mode status
|
||||
func DemoStatus(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, gin.H{
|
||||
"demoMode": middleware.IsDemoMode(),
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user