new 404 pages

This commit is contained in:
2025-11-26 15:20:29 +08:00
parent 7e0f45f3a7
commit 8d8e24e082
12 changed files with 475 additions and 1 deletions

View File

@@ -1,3 +1,10 @@
/*
* The simplest web service
* Created by MoeCinnamo on 2025/11/26.
*
* This is a simple web service that serves static files from the "docs" directory.
*/
package main
import (
@@ -138,6 +145,7 @@ func route() {
http.HandleFunc("/font-awesome/", staticFileHandler)
http.HandleFunc("/js/", staticFileHandler)
http.HandleFunc("/img/", staticFileHandler)
http.HandleFunc("/markdown/", staticFileHandler)
}
func getContentType(filename string) string {