-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #52 from fraunhoferfokus/development
* in restSvc.go you can add additional Handler outside OpenAPI
- Loading branch information
Showing
6 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.3.9 | ||
0.3.10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,7 +86,7 @@ func init() { | |
} | ||
|
||
// extend custom flags | ||
init_ext() | ||
initExt() | ||
|
||
flag.Parse() | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,5 @@ type ConfigExt struct { | |
} | ||
|
||
// define custom cli flags, ... | ||
func init_ext() { | ||
func initExt() { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,4 +69,7 @@ func NewHandler(e *echo.Echo){ | |
{{- end }} | ||
|
||
{{- end }} | ||
|
||
// Call handler extensions | ||
newHandlerExt(e) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// Edit this file, as it is a specific for your service | ||
package rest | ||
|
||
func newHandlerExt(e *echo.Echo) { | ||
// g := e.Group("") | ||
|
||
// Add your own handler | ||
// | ||
// But aware, that these are hidden from your OpenAPI | ||
// | ||
// g.GET("/myfunc", GetMyFunc) | ||
} |