#109 move last url to new layout

This commit is contained in:
Tim
2024-08-24 13:40:03 +02:00
parent 7a2f9e4be9
commit 1db7893db5
12 changed files with 92 additions and 170 deletions

View File

@@ -7,6 +7,7 @@ import (
"log"
"net/http"
"github.com/joho/godotenv"
_ "github.com/mattn/go-sqlite3"
"github.com/prometheus/client_golang/prometheus/promhttp"
)
@@ -14,6 +15,11 @@ import (
func main() {
log.Println("Starting server...")
err := godotenv.Load()
if err != nil {
log.Fatal("Error loading .env file")
}
db, err := sql.Open("sqlite3", "./data.db")
if err != nil {
log.Fatal("Could not open Database data.db: ", err)