Files
old-riskletpy/application/server.go

14 lines
316 B
Go
Raw Normal View History

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)
http.HandleFunc("/", controllers.Index)
2024-10-27 17:54:12 +01:00
}