mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-05 10:51:41 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03f822b117 | ||
|
|
ae56055640 |
@@ -2,6 +2,6 @@
|
||||
name = "cz_conventional_commits"
|
||||
tag_format = "v$version"
|
||||
version_scheme = "semver"
|
||||
version = "0.5.0"
|
||||
version = "0.5.1"
|
||||
update_changelog_on_bump = true
|
||||
major_version_zero = true
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
## v0.5.1 (2024-10-02)
|
||||
|
||||
### Refactor
|
||||
|
||||
- move Motr API to state package
|
||||
|
||||
## v0.5.0 (2024-10-02)
|
||||
|
||||
### Feat
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
package handlers
|
||||
@@ -0,0 +1 @@
|
||||
package handlers
|
||||
+7
-7
@@ -15,7 +15,7 @@ import (
|
||||
"github.com/labstack/echo/v4"
|
||||
promise "github.com/nlepage/go-js-promise"
|
||||
|
||||
"github.com/onsonr/sonr/cmd/motr/handlers"
|
||||
"github.com/onsonr/sonr/cmd/motr/state"
|
||||
"github.com/onsonr/sonr/internal/session"
|
||||
"github.com/onsonr/sonr/pkg/nebula/pages"
|
||||
)
|
||||
@@ -30,13 +30,13 @@ func main() {
|
||||
|
||||
func registerState(e *echo.Echo) {
|
||||
g := e.Group("state")
|
||||
g.POST("/login/:identifier", handlers.HandleCredentialAssertion)
|
||||
g.POST("/login/:identifier", state.HandleCredentialAssertion)
|
||||
// g.GET("/discovery", state.GetDiscovery)
|
||||
g.GET("/jwks", handlers.GetJWKS)
|
||||
g.GET("/token", handlers.GetToken)
|
||||
g.POST("/:origin/grant/:subject", handlers.GrantAuthorization)
|
||||
g.POST("/register/:subject", handlers.HandleCredentialCreation)
|
||||
g.POST("/register/:subject/check", handlers.CheckSubjectIsValid)
|
||||
g.GET("/jwks", state.GetJWKS)
|
||||
g.GET("/token", state.GetToken)
|
||||
g.POST("/:origin/grant/:subject", state.GrantAuthorization)
|
||||
g.POST("/register/:subject", state.HandleCredentialCreation)
|
||||
g.POST("/register/:subject/check", state.CheckSubjectIsValid)
|
||||
}
|
||||
|
||||
func registerViews(e *echo.Echo) {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package handlers
|
||||
package state
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
@@ -0,0 +1 @@
|
||||
package state
|
||||
@@ -1,4 +1,4 @@
|
||||
package handlers
|
||||
package state
|
||||
|
||||
import (
|
||||
"github.com/labstack/echo/v4"
|
||||
@@ -0,0 +1 @@
|
||||
package state
|
||||
@@ -0,0 +1,3 @@
|
||||
FROM scratch
|
||||
ENTRYPOINT ["/hway"]
|
||||
COPY hway /
|
||||
@@ -1,3 +0,0 @@
|
||||
FROM scratch
|
||||
ENTRYPOINT ["/motr"]
|
||||
COPY motr /
|
||||
Reference in New Issue
Block a user