admin: add routes
This commit is contained in:
10
templates.go
10
templates.go
@@ -5,6 +5,7 @@ import (
|
||||
)
|
||||
|
||||
type CipherTemplateS struct {
|
||||
ID int
|
||||
Order uint
|
||||
Assignment template.HTML
|
||||
HelpText string
|
||||
@@ -33,11 +34,18 @@ type TeamsTemplateS struct {
|
||||
Difficulties []DifficultyLevelS
|
||||
}
|
||||
|
||||
type AdminRoutesTemplateS struct {
|
||||
type AdminRouteTemplateS struct {
|
||||
Name string
|
||||
Ciphers []CipherTemplateS
|
||||
}
|
||||
|
||||
type AdminRoutesTemplateS struct {
|
||||
Routes []AdminRouteTemplateS
|
||||
Levels []int
|
||||
Positions []int
|
||||
Ciphers []int
|
||||
}
|
||||
|
||||
type AdminCipherTemplateS struct {
|
||||
ID int
|
||||
Assignment string
|
||||
|
||||
Reference in New Issue
Block a user