summaryrefslogtreecommitdiff
path: root/routes.go
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-10-30 13:02:06 -0600
committertjpcc <tjp@ctrl-c.club>2023-10-30 13:02:37 -0600
commit0b57acaa2d31038f858c7ad6722db43409c1b0a1 (patch)
treebb421b984cbfc01a540da6e20251f1d642db829d /routes.go
parentdeb9bd75511c790d151449b020093f54515bb19f (diff)
Add support for spartan protocolspartan
spartan server definitions are very similar to gemini. The major changes are: * no "servertls" directives * no "autoatom" modifier (to be fixed) * no "git" directives (to be fixed) Fixes #15
Diffstat (limited to 'routes.go')
-rw-r--r--routes.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/routes.go b/routes.go
index f1f57fd..172c45b 100644
--- a/routes.go
+++ b/routes.go
@@ -18,6 +18,8 @@ func addRoute(server Server, router *sr.Router, route RouteDirective) {
addGopherRoute(router, route)
case "gemini":
addGeminiRoute(router, route)
+ case "spartan":
+ addSpartanRoute(router, route)
default:
panic("invalid server type '" + server.Type + "'")
}