Quran API (#205)

* Add basic version of a Quran API

* remove examples json swp

* fix search translation

* add examples json
This commit is contained in:
Asim Aslam
2021-09-14 18:45:22 +01:00
committed by GitHub
parent b50d585e02
commit f0542b1a6a
14 changed files with 2530 additions and 0 deletions

25
quran/main.go Normal file
View File

@@ -0,0 +1,25 @@
package main
import (
"github.com/micro/services/quran/handler"
pb "github.com/micro/services/quran/proto"
"github.com/micro/micro/v3/service"
"github.com/micro/micro/v3/service/logger"
)
func main() {
// Create service
srv := service.New(
service.Name("quran"),
service.Version("latest"),
)
// Register handler
pb.RegisterQuranHandler(srv.Server(), new(handler.Quran))
// Run service
if err := srv.Run(); err != nil {
logger.Fatal(err)
}
}