portfolio/api/webRoutes.go
2024-05-16 17:36:44 +02:00

20 lines
485 B
Go

package api
import (
"net/http"
"portfolio/api/webHandler"
)
func WebRoutes(mux **http.ServeMux) {
m := *mux
// Register the routes and webHandler
m.HandleFunc("GET /{$}", webHandler.InitHomepage)
m.HandleFunc("GET /projecten/{$}", webHandler.InitProjectpage)
m.HandleFunc("GET /about/{$}", webHandler.InitAboutpage)
m.HandleFunc("GET /login/{$}", webHandler.InitLoginpage)
m.HandleFunc("POST /theme", webHandler.UpdateTheme)
m.HandleFunc("GET /test", webHandler.Test)
}