mirror of
https://github.com/skidoodle/ncore-stats.git
synced 2026-04-28 15:57:37 +02:00
Refactor web assets structure; migrate HTML, CSS, and JS to new directory and update Dockerfile for new paths
This commit is contained in:
@@ -90,9 +90,7 @@ func main() {
|
||||
router := http.NewServeMux()
|
||||
router.HandleFunc("/api/profiles", state.profilesHandler)
|
||||
router.HandleFunc("/api/history", state.historyHandler)
|
||||
router.HandleFunc("/", serveStatic("index.html", "text/html"))
|
||||
router.HandleFunc("/style.css", serveStatic("style.css", "text/css"))
|
||||
router.HandleFunc("/script.js", serveStatic("script.js", "application/javascript"))
|
||||
router.Handle("/", http.FileServer(http.Dir("web")))
|
||||
|
||||
server := &http.Server{
|
||||
Addr: config.ServerPort,
|
||||
|
||||
Reference in New Issue
Block a user