mirror of
https://github.com/Dvorinka/Trackeep.git
synced 2026-06-03 20:12:58 +00:00
16 lines
273 B
Go
16 lines
273 B
Go
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(),
|
|
})
|
|
}
|