14 lines
316 B
Go
14 lines
316 B
Go
package application
|
|
|
|
import (
|
|
"net/http"
|
|
"risklet/application/controllers"
|
|
)
|
|
|
|
func SetupAppServer() {
|
|
fs := http.FileServer(http.Dir("./application/static"))
|
|
http.Handle("GET /static/", http.StripPrefix("/static/", fs))
|
|
http.HandleFunc("/signup/", controllers.Signup)
|
|
http.HandleFunc("/", controllers.Index)
|
|
}
|