Skip to content
Snippets Groups Projects
Unverified Commit 961fe8ed authored by Réthelyi Bálint's avatar Réthelyi Bálint :no_mouth:
Browse files

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.
parent 648aa5a1
No related branches found
No related tags found
1 merge request!25Add API endpoints and middleware for user and product manipulation
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment