Company now works
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user