initial commit
This commit is contained in:
commit
85d50ee958
26 files changed
+2146
No files matched your search
@@ -0,0 +1,14 @@
|
||||
package api
|
||||
|
||||
import "net/http"
|
||||
|
||||
func Extlinux(w http.ResponseWriter, req *http.Request) {
|
||||
switch req.Method {
|
||||
case "GET":
|
||||
ExtlinuxRead(w, req)
|
||||
case "POST":
|
||||
ExtlinuxWrite(w, req)
|
||||
default:
|
||||
http.Error(w, "method not allowed", http.StatusMethodNotAllowed)
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user