Company now works

This commit is contained in:
2024-11-04 07:35:24 +01:00
parent ddebbad1c8
commit 51b0641702
12 changed files with 498 additions and 10 deletions

View File

@@ -2,10 +2,12 @@ package application
import (
"net/http"
"risklet/application/controllers"
)
func SetupAppServer() {
fs := http.FileServer(http.Dir("./application/static"))
http.Handle("/static/", http.StripPrefix("/static/", fs))
http.HandleFunc("/", index)
http.Handle("GET /static/", http.StripPrefix("/static/", fs))
http.HandleFunc("/signup/", controllers.Signup)
http.HandleFunc("/", controllers.Index)
}