This commit is contained in:
Bartal Læarsson
2026-06-25 12:42:23 +01:00
parent d97576f41c
commit aa3ef18f1a
6 changed files with 1 additions and 35 deletions
-2
View File
@@ -14,8 +14,6 @@ const (
DefaultDatasetSize = 546
)
// ApiKey mirrors the original API's JWT utility style: utils.GenerateToken and
// utils.VerifyToken read the signing secret from config.
var ApiKey = DefaultJWTSecret
type Config struct {
-1
View File
@@ -26,7 +26,6 @@ var AbuseCategories = []string{
var Genders = []string{"female", "male", "non_binary", "unknown"}
var Statuses = []string{"new", "open", "referred", "closed"}
// FaroeLocations is the fixed set of accepted location values for this POC.
var FaroeLocations = []string{
"Akrar", "Argir", "Ánirnar", "Árnafjørður", "Bøur", "Dalur", "Depil", "Eiði",
"Elduvík", "Fámjin", "Froðba", "Fuglafjørður", "Funningsfjørður", "Funningur",
-6
View File
@@ -5,15 +5,9 @@ import (
"io/fs"
)
// Templates contains all server-rendered HTML templates.
//
//go:embed templates/index.html
var Templates embed.FS
// Assets contains every browser asset needed by the POC page.
// The production binary serves these files from memory, so the server does not
// depend on a static/ directory beside the executable.
//
//go:embed static/* static/css/* static/js/* favicon.ico
var Assets embed.FS