From 961fe8edf688034faee162c6e5f369790c9cc3a0 Mon Sep 17 00:00:00 2001
From: blint <rethelyibalint@gmail.com>
Date: Sun, 20 Aug 2023 20:52:04 +0200
Subject: [PATCH] Include 'pultosch' and 'api' modules to server configurations

In response to new feature requirements, the server configuration in 'main.go' has been extended to include 'pultosch' and 'api' modules from the package 'disappointment-industries/becskasszasch'. These routes have been added to the 'mux' to enable the handling of the relative endpoints. This inclusion allows the broader application to utilize the functionalities provided by 'pultosch' and 'api' modules.
---
 main.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/main.go b/main.go
index 715adb8..9945450 100644
--- a/main.go
+++ b/main.go
@@ -3,10 +3,12 @@ package main
 import (
 	"flag"
 	"git.sch.bme.hu/disappointment-industries/becskasszasch/admin"
+	"git.sch.bme.hu/disappointment-industries/becskasszasch/api"
 	"git.sch.bme.hu/disappointment-industries/becskasszasch/auth"
 	"git.sch.bme.hu/disappointment-industries/becskasszasch/helpers"
 	"git.sch.bme.hu/disappointment-industries/becskasszasch/history"
 	"git.sch.bme.hu/disappointment-industries/becskasszasch/homepage"
+	"git.sch.bme.hu/disappointment-industries/becskasszasch/pultosch"
 	"git.sch.bme.hu/disappointment-industries/becskasszasch/topup"
 	"github.com/prometheus/client_golang/prometheus/promhttp"
 	"gitlab.com/MikeTTh/env"
@@ -39,6 +41,8 @@ func main() {
 	mux.Handle("/metrics", promhttp.Handler())
 	mux.Handle("/metrics/", promhttp.Handler())
 	mux.Handle("/admin/", http.StripPrefix("/admin", admin.Handler))
+	mux.Handle("/pult/", http.StripPrefix("/pult", pultosch.Handler))
+	mux.Handle("/api/v1/", http.StripPrefix("/api/v1", api.Handler))
 	mux.HandleFunc("/history/", history.Handler)
 	mux.HandleFunc("/", homepage.Handler)
 	//mux.HandleFunc("/new/", homepage.NewHandler)
-- 
GitLab