admin: add routes

This commit is contained in:
2025-10-09 19:42:10 +02:00
parent 3ca41ec9da
commit a897d5943b
3 changed files with 146 additions and 8 deletions

View File

@@ -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