This commit is contained in:
2
main.go
2
main.go
@@ -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)
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user