cleanup
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user