Skip to content

Commit

Permalink
Merge pull request #46 from natrontech/36-key-value-routes
Browse files Browse the repository at this point in the history
36 key value routes
  • Loading branch information
Joel-Haeberli committed Sep 13, 2023
2 parents c79ebf2 + 5d11856 commit 0c29413
Show file tree
Hide file tree
Showing 16 changed files with 1,191 additions and 27 deletions.
2 changes: 1 addition & 1 deletion momentum-core/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
dev-setup.sh
./dev-setup.sh
momentum-core
4 changes: 4 additions & 0 deletions momentum-core/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ func (m *MomentumConfig) checkMandatoryTemplates() error {

func (m *MomentumConfig) initializeGitAccessToken() error {

if TRANSACTION_MODE == gittransaction.DEBUG {
return nil
}

m.transactionToken = new(gittransaction.Token)

m.transactionToken.Username = os.Getenv(MOMENTUM_GIT_USER)
Expand Down
1 change: 1 addition & 0 deletions momentum-core/dispatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func NewDispatcher(config *config.MomentumConfig,
dispatcher.applicationRouter.RegisterApplicationRoutes(dispatcher.server)
dispatcher.stageRouter.RegisterStageRoutes(dispatcher.server)
dispatcher.deploymentRouter.RegisterDeploymentRoutes(dispatcher.server)
dispatcher.valueRouter.RegisterValueRoutes(dispatcher.server)

dispatcher.server.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))

Expand Down
279 changes: 279 additions & 0 deletions momentum-core/docs/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0c29413

Please sign in to comment.