This commit is contained in:
Fran Jurmanović
2024-07-09 23:42:26 +02:00
commit 1bb73c866a
15 changed files with 425 additions and 0 deletions

28
local/service/api.go Normal file
View File

@@ -0,0 +1,28 @@
package service
import (
"acc-server-manager/local/utl/configs"
"github.com/gofiber/fiber/v2"
)
type ApiService struct {
}
func NewApiService() *ApiService {
return &ApiService{}
}
/*
GetFirst
Gets first row from API table.
Args:
context.Context: Application context
Returns:
string: Application version
*/
func (as ApiService) GetFirst(ctx *fiber.Ctx) string {
return configs.Version
}