Lindenii Project Forge
Login

server

Lindenii Forge’s main backend daemon
Commit info
ID
390531026520d851357c422f72ce4ddf4dfc65aa
Author
Runxi Yu <me@runxiyu.org>
Author date
Fri, 21 Mar 2025 22:43:55 +0800
Committer
Runxi Yu <me@runxiyu.org>
Committer date
Fri, 21 Mar 2025 22:43:55 +0800
Actions
errorPage404 should actually do 404
// SPDX-License-Identifier: AGPL-3.0-only
// SPDX-FileContributor: Runxi Yu <https://runxiyu.org>

package main

import (
	"net/http"
)

func errorPage404(w http.ResponseWriter, params map[string]any) {
	w.WriteHeader(404)
	_ = templates.ExecuteTemplate(w, "404", params)
}