Skip to content

Commit

Permalink
Merge pull request #10 from owncloud/additions
Browse files Browse the repository at this point in the history
Fix typo, add config to graph service
  • Loading branch information
DeepDiver1975 authored Dec 6, 2019
2 parents 1382676 + 070e978 commit 055c99d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
7 changes: 5 additions & 2 deletions pkg/service/v0/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand All @@ -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)
Expand All @@ -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.
Expand Down

0 comments on commit 055c99d

Please sign in to comment.