2024-07-06 07:13:07 +02:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"log"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
mux := http.NewServeMux()
|
2024-07-13 06:24:36 +02:00
|
|
|
|
2024-07-06 07:13:07 +02:00
|
|
|
mux.Handle("GET /toggle-password-visibility/", http.StripPrefix("/toggle-password-visibility", http.FileServer(http.Dir("toggle-password-visibility"))))
|
2024-07-13 06:24:36 +02:00
|
|
|
mux.Handle("GET /toggle-multiple-fields/", http.StripPrefix("/toggle-multiple-fields", http.FileServer(http.Dir("toggle-multiple-fields"))))
|
2024-07-16 07:36:08 +02:00
|
|
|
mux.Handle("GET /toggle-multiple-forms/", http.StripPrefix("/toggle-multiple-forms", http.FileServer(http.Dir("toggle-multiple-forms"))))
|
2024-07-30 14:40:11 +02:00
|
|
|
mux.Handle("GET /character-count/", http.StripPrefix("/character-count", http.FileServer(http.Dir("character-count"))))
|
2024-07-30 15:20:52 +02:00
|
|
|
mux.Handle("GET /character-word-count/", http.StripPrefix("/character-word-count", http.FileServer(http.Dir("character-word-count"))))
|
2024-08-05 18:46:31 +02:00
|
|
|
mux.Handle("GET /random-ron/", http.StripPrefix("/random-ron", http.FileServer(http.Dir("random-ron"))))
|
2024-08-07 17:49:49 +02:00
|
|
|
mux.Handle("GET /random-ron-no-dup/", http.StripPrefix("/random-ron-no-dup", http.FileServer(http.Dir("random-ron-no-dup"))))
|
2024-08-08 06:10:16 +02:00
|
|
|
mux.Handle("GET /random-ron-async-await/", http.StripPrefix("/random-ron-async-await", http.FileServer(http.Dir("random-ron-async-await"))))
|
2024-08-08 06:43:48 +02:00
|
|
|
mux.Handle("GET /dragon-trainer-monthly/", http.StripPrefix("/dragon-trainer-monthly", http.FileServer(http.Dir("dragon-trainer-monthly"))))
|
2024-08-08 13:38:49 +02:00
|
|
|
mux.Handle("GET /dragon-trainer-monthly-authors/", http.StripPrefix("/dragon-trainer-monthly-authors", http.FileServer(http.Dir("dragon-trainer-monthly-authors"))))
|
2024-08-12 17:00:50 +02:00
|
|
|
mux.Handle("GET /dragon-trainer-monthly-sanitized/", http.StripPrefix("/dragon-trainer-monthly-sanitized", http.FileServer(http.Dir("dragon-trainer-monthly-sanitized"))))
|
|
|
|
mux.Handle("GET /monster-shuffle/", http.StripPrefix("/monster-shuffle", http.FileServer(http.Dir("monster-shuffle"))))
|
|
|
|
mux.Handle("GET /monster-game/", http.StripPrefix("/monster-game", http.FileServer(http.Dir("monster-game"))))
|
|
|
|
mux.Handle("GET /monster-game-score/", http.StripPrefix("/monster-game-score", http.FileServer(http.Dir("monster-game-score"))))
|
2024-08-12 18:48:18 +02:00
|
|
|
mux.Handle("GET /form-autosave/", http.StripPrefix("/form-autosave", http.FileServer(http.Dir("form-autosave"))))
|
2024-08-13 07:20:56 +02:00
|
|
|
mux.Handle("GET /form-autosave-single-entry/", http.StripPrefix("/form-autosave-single-entry", http.FileServer(http.Dir("form-autosave-single-entry"))))
|
2024-08-14 19:09:35 +02:00
|
|
|
mux.Handle("GET /form-autosave-status/", http.StripPrefix("/form-autosave-status", http.FileServer(http.Dir("form-autosave-status"))))
|
2024-07-06 07:13:07 +02:00
|
|
|
|
|
|
|
log.Println("Start the web server...")
|
|
|
|
err := http.ListenAndServe(":8080", mux)
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|