mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-22 23:35:26 +00:00
Fix url (#105)
This commit is contained in:
@@ -11,12 +11,12 @@ import (
|
||||
func main() {
|
||||
// Create service
|
||||
srv := service.New(
|
||||
service.Name("url-shortener"),
|
||||
service.Name("url"),
|
||||
service.Version("latest"),
|
||||
)
|
||||
|
||||
// Register handler
|
||||
pb.RegisterUrlShortenerHandler(srv.Server(), handler.NewUrl())
|
||||
pb.RegisterUrlHandler(srv.Server(), handler.NewUrl())
|
||||
|
||||
// Run service
|
||||
if err := srv.Run(); err != nil {
|
||||
|
||||
Reference in New Issue
Block a user