Skip to content

Commit

Permalink
Better SPA handling
Browse files Browse the repository at this point in the history
  • Loading branch information
h00s committed Sep 13, 2024
1 parent ff813b2 commit f72b35e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/config/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ func Routes() raptor.Routes {
raptor.Route("PATCH", "pastes/:id", "PastesController", "Update"),
raptor.Route("POST", "pastes", "PastesController", "Create"),
),
raptor.Route("GET", "/*", "SPAController", "Index"),
// raptor.Route("GET", "/*", "SPAController", "Index"),
)
}
2 changes: 1 addition & 1 deletion backend/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ go 1.23.1

require (
github.com/go-raptor/connector/bun/postgres v1.0.0
github.com/go-raptor/raptor/v3 v3.0.0-alpha.4
github.com/go-raptor/raptor/v3 v3.0.0-alpha.5
)

require (
Expand Down
2 changes: 2 additions & 0 deletions backend/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ github.com/go-raptor/raptor/v3 v3.0.0-alpha.3 h1:JH678k9VYcj0+vMpHJROC/Mz83qiCQ0
github.com/go-raptor/raptor/v3 v3.0.0-alpha.3/go.mod h1:rUUZhJZs5oax5yNcjbn8Rcp9PFGBbVZqaNfDPTaHl08=
github.com/go-raptor/raptor/v3 v3.0.0-alpha.4 h1:e45asXTcUUdfqIiBLIzg/mBtou2fnIY4A0vDwBDFxkA=
github.com/go-raptor/raptor/v3 v3.0.0-alpha.4/go.mod h1:rUUZhJZs5oax5yNcjbn8Rcp9PFGBbVZqaNfDPTaHl08=
github.com/go-raptor/raptor/v3 v3.0.0-alpha.5 h1:0/ojw+ckfpbi9MlXVToMQqgvM89ivnKX8gFGxRoeq7E=
github.com/go-raptor/raptor/v3 v3.0.0-alpha.5/go.mod h1:rUUZhJZs5oax5yNcjbn8Rcp9PFGBbVZqaNfDPTaHl08=
github.com/golang-jwt/jwt v3.2.2+incompatible h1:IfV12K8xAKAnZqdXVzCZ+TOjboZ2keLg81eXfW3O+oY=
github.com/golang-jwt/jwt v3.2.2+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
Expand Down

0 comments on commit f72b35e

Please sign in to comment.