mirror of
https://github.com/safing/portbase
synced 2025-09-11 07:44:43 +00:00
Finish first API version
This commit is contained in:
parent
d7e0602548
commit
31c09512a0
6 changed files with 175 additions and 22 deletions
11
api/testclient/serve.go
Normal file
11
api/testclient/serve.go
Normal 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/"))))
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue