2024-10-27 17:54:12 +01:00
|
|
|
package application
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"net/http"
|
2024-11-04 07:35:24 +01:00
|
|
|
"risklet/application/controllers"
|
2024-10-27 17:54:12 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func SetupAppServer() {
|
|
|
|
|
fs := http.FileServer(http.Dir("./application/static"))
|
2024-11-04 07:35:24 +01:00
|
|
|
http.Handle("GET /static/", http.StripPrefix("/static/", fs))
|
|
|
|
|
http.HandleFunc("/signup/", controllers.Signup)
|
2024-11-17 19:41:30 +01:00
|
|
|
http.HandleFunc("/advanced/{companyString}", controllers.Advanced)
|
2024-11-04 07:35:24 +01:00
|
|
|
http.HandleFunc("/", controllers.Index)
|
2024-10-27 17:54:12 +01:00
|
|
|
}
|