mirror of
https://github.com/safing/portbase
synced 2026-05-01 21:21:23 +00:00
Update api with registering handlers, middleware and authentication
This commit is contained in:
parent
a7105dc6ba
commit
8d091f7f7a
10 changed files with 255 additions and 37 deletions
|
|
@ -7,5 +7,5 @@ import (
|
|||
)
|
||||
|
||||
func init() {
|
||||
api.RegisterAdditionalRoute("/test/", http.StripPrefix("/test/", http.FileServer(http.Dir("./api/testclient/root/"))))
|
||||
api.RegisterHandler("/test/", http.StripPrefix("/test/", http.FileServer(http.Dir("./api/testclient/root/"))))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue