mirror of
https://github.com/nkanaev/yarr.git
synced 2025-12-15 08:37:21 +00:00
basic server
This commit is contained in:
23
server/handlers.go
Normal file
23
server/handlers.go
Normal 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) {
|
||||
}
|
||||
Reference in New Issue
Block a user