Merge pull request #10 from owncloud/additions

Fix typo, add config to graph service
This commit is contained in:
Thomas Müller
2019-12-06 14:09:12 +01:00
committed by GitHub
2 changed files with 6 additions and 3 deletions

View File

@@ -11,7 +11,7 @@
## Install
You can download prebuilt binaries from the GitHub releases or from our [download mirrors](http://download.owncloud.com/ocis/graph/). For instructions how to install this on your platform you should take a look at our [documentation](https://owncloud.github.cio/ocis-graph/)
You can download prebuilt binaries from the GitHub releases or from our [download mirrors](http://download.owncloud.com/ocis/graph/). For instructions how to install this on your platform you should take a look at our [documentation](https://owncloud.github.io/ocis-graph/)
## Development

View File

@@ -6,6 +6,7 @@ import (
"github.com/go-chi/chi"
"github.com/go-chi/render"
"github.com/owncloud/ocis-graph/pkg/config"
msgraph "github.com/yaegashi/msgraph.go/v1.0"
ldap "gopkg.in/ldap.v3"
)
@@ -25,7 +26,8 @@ func NewService(opts ...Option) Service {
m.Use(options.Middleware...)
svc := Graph{
mux: m,
config: options.Config,
mux: m,
}
m.HandleFunc("/v1.0/me", svc.Me)
@@ -36,7 +38,8 @@ func NewService(opts ...Option) Service {
// Graph defines implements the business logic for Service.
type Graph struct {
mux *chi.Mux
config *config.Config
mux *chi.Mux
}
// ServeHTTP implements the Service interface.