2024-08-16 15:04:17 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"log"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
mux := http.NewServeMux()
|
|
|
|
|
|
|
|
mux.Handle("GET /dice-library/", http.StripPrefix("/dice-library", http.FileServer(http.Dir("dice-library"))))
|
2024-09-01 15:14:08 +02:00
|
|
|
mux.Handle("GET /dice-library-es-modules/", http.StripPrefix("/dice-library-es-modules", http.FileServer(http.Dir("dice-library-es-modules"))))
|
2024-08-16 15:47:14 +02:00
|
|
|
mux.Handle("GET /treasure-chest/", http.StripPrefix("/treasure-chest", http.FileServer(http.Dir("treasure-chest"))))
|
2024-08-16 19:14:39 +02:00
|
|
|
mux.Handle("GET /treasure-chest-chaining-static/", http.StripPrefix("/treasure-chest-chaining-static", http.FileServer(http.Dir("treasure-chest-chaining-static"))))
|
2024-08-17 12:35:54 +02:00
|
|
|
mux.Handle("GET /treasure-chest-user-options/", http.StripPrefix("/treasure-chest-user-options", http.FileServer(http.Dir("treasure-chest-user-options"))))
|
2024-08-19 08:19:15 +02:00
|
|
|
mux.Handle("GET /treasure-chest-js-class/", http.StripPrefix("/treasure-chest-js-class", http.FileServer(http.Dir("treasure-chest-js-class"))))
|
|
|
|
mux.Handle("GET /treasure-chest-private/", http.StripPrefix("/treasure-chest-private", http.FileServer(http.Dir("treasure-chest-private"))))
|
2024-08-19 15:03:30 +02:00
|
|
|
mux.Handle("GET /treasure-chest-custom-events/", http.StripPrefix("/treasure-chest-custom-events", http.FileServer(http.Dir("treasure-chest-custom-events"))))
|
2024-08-23 14:41:23 +02:00
|
|
|
mux.Handle("GET /dice-component/", http.StripPrefix("/dice-component", http.FileServer(http.Dir("dice-component"))))
|
|
|
|
mux.Handle("GET /dice-component-interactivity/", http.StripPrefix("/dice-component-interactivity", http.FileServer(http.Dir("dice-component-interactivity"))))
|
2024-09-01 15:14:08 +02:00
|
|
|
mux.Handle("GET /seven-seas/", http.StripPrefix("/seven-seas", http.FileServer(http.Dir("seven-seas"))))
|
2024-09-02 09:39:19 +02:00
|
|
|
mux.Handle("GET /seven-seas-bundlers/", http.StripPrefix("/seven-seas-bundlers", http.FileServer(http.Dir("seven-seas-bundlers"))))
|
2024-09-02 10:50:21 +02:00
|
|
|
mux.Handle("GET /seven-seas-page-specific-bundles/", http.StripPrefix("/seven-seas-page-specific-bundles", http.FileServer(http.Dir("seven-seas-page-specific-bundles"))))
|
2024-09-05 10:59:07 +02:00
|
|
|
mux.Handle("GET /seven-seas-service-worker/", http.StripPrefix("/seven-seas-service-worker", http.FileServer(http.Dir("seven-seas-service-worker"))))
|
2024-09-09 17:55:31 +02:00
|
|
|
mux.Handle("GET /seven-seas-cache-strategy/", http.StripPrefix("/seven-seas-cache-strategy", http.FileServer(http.Dir("seven-seas-cache-strategy"))))
|
2024-08-16 15:04:17 +02:00
|
|
|
|
|
|
|
log.Println("Start the web server...")
|
|
|
|
err := http.ListenAndServe(":8080", mux)
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|