Use authentication middleware

This commit is contained in:
sirkrypt0
2021-04-29 17:52:27 +02:00
parent 99ee8c6dfb
commit 5891a8c48b
3 changed files with 9 additions and 1 deletions

View File

@@ -16,8 +16,9 @@ import (
var (
Config = &configuration{
Server: server{
Address: "127.0.0.1",
Address: "127.0.0.1",
Port: 3000,
Token: "",
TLS: false,
CertFile: "",
KeyFile: "",
@@ -43,6 +44,7 @@ var (
type server struct {
Address string
Port int
Token string
TLS bool
CertFile string
KeyFile string