Skip to content

Commit 429b9ad

Browse files
authored
Merge pull request #115 from deploymenttheory/dev
Added redirect handler
2 parents 5ad1c9d + 49ec251 commit 429b9ad

18 files changed

+668
-224
lines changed

apihandlers/graph/graph_api_error_messages.go renamed to apihandlers/msgraph/msgraph_api_error_messages.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// graph_api_error_messages.go
2-
package graph
1+
// msgraph_api_error_messages.go
2+
package msgraph
33

44
import (
55
"bytes"

apihandlers/graph/graph_api_exceptions.go renamed to apihandlers/msgraph/msgraph_api_exceptions.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// graph_api_exceptions.go
2-
package graph
1+
// msgraph_api_exceptions.go
2+
package msgraph
33

44
import (
55
_ "embed"
@@ -25,7 +25,7 @@ var configMap ConfigMap
2525

2626
// Embedded Resources
2727
//
28-
//go:embed graph_api_exceptions_configuration.json
28+
//go:embed msgraph_api_exceptions_configuration.json
2929
var graph_api_exceptions_configuration []byte
3030

3131
// init is invoked automatically on package initialization and is responsible for

apihandlers/graph/graph_api_exceptions_configuration.json renamed to apihandlers/msgraph/msgraph_api_exceptions_configuration.json

File renamed without changes.

apihandlers/graph/graph_api_handler.go renamed to apihandlers/msgraph/msgraph_api_handler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// graph_api_handler.go
2-
package graph
1+
// msgraph_api_handler.go
2+
package msgraph
33

44
import "github.com/deploymenttheory/go-api-http-client/logger"
55

apihandlers/graph/graph_api_handler_constants.go renamed to apihandlers/msgraph/msgraph_api_handler_constants.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// graph_api_handler_constants.go
2-
package graph
1+
// msgraph_api_handler_constants.go
2+
package msgraph
33

44
// Endpoint constants represent the URL suffixes used for graph API token interactions.
55
const (

apihandlers/graph/graph_api_headers.go renamed to apihandlers/msgraph/msgraph_api_headers.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// graph_api_headers.go
2-
package graph
1+
// msgraph_api_headers.go
2+
package msgraph
33

44
import (
55
"strings"

apihandlers/graph/graph_api_request.go renamed to apihandlers/msgraph/msgraph_api_request.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// graph_api_request.go
2-
package graph
1+
// msgraph_api_request.go
2+
package msgraph
33

44
import (
55
"bytes"

apihandlers/graph/graph_api_response.go renamed to apihandlers/msgraph/msgraph_api_response.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// graph_api_response.go
2-
package graph
1+
// msgraph_api_response.go
2+
package msgraph
33

44
import (
55
"encoding/json"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// graph_api_url.go
2-
package graph
1+
// msgraph_api_url.go
2+
package msgraph
33

44
import (
55
"fmt"

httpclient/httpclient_api_handler.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ package httpclient
44
import (
55
"net/http"
66

7-
"github.com/deploymenttheory/go-api-http-client/apihandlers/graph"
87
"github.com/deploymenttheory/go-api-http-client/apihandlers/jamfpro"
8+
"github.com/deploymenttheory/go-api-http-client/apihandlers/msgraph"
99
"github.com/deploymenttheory/go-api-http-client/logger"
1010
"go.uber.org/zap"
1111
)
@@ -44,8 +44,8 @@ func LoadAPIHandler(apiType string, log logger.Logger) (APIHandler, error) {
4444
}
4545
log.Info("API handler loaded successfully", zap.String("APIType", apiType))
4646

47-
case "graph":
48-
apiHandler = &graph.GraphAPIHandler{
47+
case "msgraph":
48+
apiHandler = &msgraph.GraphAPIHandler{
4949
// Initialize with necessary parameters
5050
}
5151
log.Info("API handler loaded successfully", zap.String("APIType", apiType))

0 commit comments

Comments
 (0)