code view
This commit is contained in:
parent
f6b6c8a7e6
commit
3a601b2bdd
2 changed files with 86 additions and 0 deletions
4
main.go
4
main.go
|
|
@ -13,6 +13,7 @@ import (
|
|||
|
||||
_ "github.com/mattn/go-sqlite3"
|
||||
|
||||
codeview "gemini_site/internal/codeview"
|
||||
gemlog "gemini_site/internal/gemlog"
|
||||
"gemini_site/internal/guestbook"
|
||||
microblog "gemini_site/internal/microblog"
|
||||
|
|
@ -44,6 +45,9 @@ func (h MainHandler) ServeGemini(w gemini.ResponseWriter, req *gemini.Request) {
|
|||
case strings.HasPrefix(req.URL.Path, "/guestbook"):
|
||||
h.guestbook.HandleRequest(w, req)
|
||||
return
|
||||
case strings.HasPrefix(req.URL.Path, "/codeview"):
|
||||
codeview.HandleRequest(w, req)
|
||||
return
|
||||
}
|
||||
|
||||
switch req.URL.Path {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue