1
0
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:
Shelikhoo 2021-09-06 13:42:05 +01:00
parent 779a7c84ed
commit 13f05c1b9d
No known key found for this signature in database
GPG Key ID: C4D5E79D22B25316

12
app/restful-api/config.go Normal file
View 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))
}))
}