update safe handler
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-01-10 11:33:07 +11:00
parent 50f078db7a
commit 4b44c93693
2 changed files with 3 additions and 3 deletions

View File

@@ -259,7 +259,7 @@ func main() {
// Other functions for admin // Other functions for admin
adminOnly.POST("/unlock", controllers.Unlock) adminOnly.POST("/unlock", controllers.Unlock)
adminOnly.POST("/safes/listall", controllers.GetAllSafesHandler) adminOnly.POST("/safe/listall", controllers.GetAllSafesHandler)
// Deprecated // Deprecated
//adminOnly.GET("/roles", controllers.GetRoles) //adminOnly.GET("/roles", controllers.GetRoles)

View File

@@ -6,8 +6,8 @@ import (
) )
type Safe struct { type Safe struct {
SafeId int `db:"SafeId"` SafeId int `db:"SafeId" json:"safeId"`
SafeName string `db:"SafeName"` SafeName string `db:"SafeName" json:"safeName"`
} }
// SafeGetByName queries the database for the specified safe name // SafeGetByName queries the database for the specified safe name