Initial open source release

This commit is contained in:
Ronni Skansing
2025-08-21 16:14:09 +02:00
commit 11cf01f08e
488 changed files with 97180 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
package controller
import (
"github.com/gin-gonic/gin"
"github.com/phishingclub/phishingclub/service"
)
// Version is a controller
type Version struct {
Common
versionService *service.Version
}
// Get application version
func (c *Version) Get(g *gin.Context) {
// handle session
session, _, ok := c.handleSession(g)
if !ok {
return
}
version, err := c.versionService.Get(g.Request.Context(), session)
if ok := handleServerError(g, c.Response, err); !ok {
return
}
c.Response.OK(g, version)
}