Initial hello world
This commit is contained in:
11
application/server.go
Normal file
11
application/server.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package application
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func SetupAppServer() {
|
||||
fs := http.FileServer(http.Dir("./application/static"))
|
||||
http.Handle("/static/", http.StripPrefix("/static/", fs))
|
||||
http.HandleFunc("/", index)
|
||||
}
|
||||
Reference in New Issue
Block a user