basic server

This commit is contained in:
Nazar Kanaev
2020-06-28 00:28:22 +01:00
parent 241f99fc58
commit 29b860470b
3 changed files with 100 additions and 1 deletions

23
server/handlers.go Normal file
View File

@@ -0,0 +1,23 @@
package server
import "net/http"
func Index(rw http.ResponseWriter, req *http.Request) {
rw.Write([]byte("index"))
}
func Static(rw http.ResponseWriter, req *http.Request) {
rw.Write([]byte("static:" + Vars(req)["path"]))
}
func FolderList(rw http.ResponseWriter, req *http.Request) {
}
func Folder(rw http.ResponseWriter, req *http.Request) {
}
func FeedList(rw http.ResponseWriter, req *http.Request) {
}
func Feed(rw http.ResponseWriter, req *http.Request) {
}