15 lines
267 B
Go
15 lines
267 B
Go
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)
|
|
}
|
|
}
|