basic server
This commit is contained in:
parent
241f99fc58
commit
29b860470b
3 changed files with 100 additions and 1 deletions
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) {
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue