Finish first API version

This commit is contained in:
Daniel 2018-09-27 15:58:31 +02:00
parent d7e0602548
commit 31c09512a0
6 changed files with 175 additions and 22 deletions

11
api/testclient/serve.go Normal file
View file

@ -0,0 +1,11 @@
package testclient
import (
"net/http"
"github.com/Safing/portbase/api"
)
func init() {
api.RegisterAdditionalRoute("/test/", http.StripPrefix("/test/", http.FileServer(http.Dir("./api/testclient/root/"))))
}