New Endpoint and security enhancement

- Userinfo endpoint is now available
- HTTPS is now required (closes #2)
This commit is contained in:
2026-03-03 15:41:07 +01:00
parent c75c405200
commit ef7ef3cf74
6 changed files with 93 additions and 21 deletions

10
main.go
View File

@@ -7,17 +7,13 @@ import (
)
func main() {
var SERVER = server.InitServer()
var _server = server.InitServer()
err := storage.InitDB(SERVER.DatabasePath)
err := storage.InitDB(_server.DatabasePath)
if err != nil {
log.Fatal(err)
return
}
SERVER.Run()
}
func Setup() {
//TODO: first configuration
_server.Run()
}