This commit is contained in:
2
main.go
2
main.go
@@ -259,7 +259,7 @@ func main() {
|
||||
|
||||
// Other functions for admin
|
||||
adminOnly.POST("/unlock", controllers.Unlock)
|
||||
adminOnly.POST("/safes/listall", controllers.GetAllSafesHandler)
|
||||
adminOnly.POST("/safe/listall", controllers.GetAllSafesHandler)
|
||||
|
||||
// Deprecated
|
||||
//adminOnly.GET("/roles", controllers.GetRoles)
|
||||
|
@@ -6,8 +6,8 @@ import (
|
||||
)
|
||||
|
||||
type Safe struct {
|
||||
SafeId int `db:"SafeId"`
|
||||
SafeName string `db:"SafeName"`
|
||||
SafeId int `db:"SafeId" json:"safeId"`
|
||||
SafeName string `db:"SafeName" json:"safeName"`
|
||||
}
|
||||
|
||||
// SafeGetByName queries the database for the specified safe name
|
||||
|
Reference in New Issue
Block a user