mirror of
https://github.com/v2fly/v2ray-core.git
synced 2024-12-21 09:36:34 -05:00
added service registration
This commit is contained in:
parent
779a7c84ed
commit
13f05c1b9d
12
app/restful-api/config.go
Normal file
12
app/restful-api/config.go
Normal file
@ -0,0 +1,12 @@
|
||||
package restful_api
|
||||
|
||||
import (
|
||||
"context"
|
||||
"github.com/v2fly/v2ray-core/v4/common"
|
||||
)
|
||||
|
||||
func init() {
|
||||
common.Must(common.RegisterConfig((*Config)(nil), func(ctx context.Context, config interface{}) (interface{}, error) {
|
||||
return newRestfulService(ctx, config.(*Config))
|
||||
}))
|
||||
}
|
Loading…
Reference in New Issue
Block a user