Add 100 gigabit ethernet guide

This commit is contained in:
2024-03-06 18:35:40 +01:00
parent 7b3f7975ed
commit 8a089e0464
3 changed files with 470 additions and 1 deletions

View File

@@ -151,6 +151,7 @@ func New(r *httprouter.Router, prefix string, conf Config) (wc *WebController) {
{GET, "limits" /* */, wc.serveMarkdown("limits.md", handlerOpts{})},
{GET, "abuse" /* */, wc.serveMarkdown("abuse.md", handlerOpts{})},
{GET, "filesystem" /* */, wc.serveMarkdown("filesystem.md", handlerOpts{})},
{GET, "100_gigabit_ethernet", wc.serveMarkdown("100_gigabit_ethernet.md", handlerOpts{NoExec: true})},
{GET, "apps" /* */, wc.serveTemplate("apps", handlerOpts{})},
{GET, "speedtest" /* */, wc.serveTemplate("speedtest", handlerOpts{})},
@@ -229,6 +230,7 @@ func middleware(handle httprouter.Handle) httprouter.Handle {
type handlerOpts struct {
Auth bool
NoEmbed bool
NoExec bool
}
func (wc *WebController) serveTemplate(tpl string, opts handlerOpts) httprouter.Handle {