From f72b35e1b57d3a2e623ce8f6bece40d1c7fa11dc Mon Sep 17 00:00:00 2001 From: Krunoslav Husak Date: Fri, 13 Sep 2024 11:45:58 +0200 Subject: [PATCH] Better SPA handling --- backend/config/routes.go | 2 +- backend/go.mod | 2 +- backend/go.sum | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/backend/config/routes.go b/backend/config/routes.go index e89700c..a22d644 100644 --- a/backend/config/routes.go +++ b/backend/config/routes.go @@ -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"), ) } diff --git a/backend/go.mod b/backend/go.mod index 74b915a..aa54411 100644 --- a/backend/go.mod +++ b/backend/go.mod @@ -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 ( diff --git a/backend/go.sum b/backend/go.sum index 1c540f9..87a9119 100644 --- a/backend/go.sum +++ b/backend/go.sum @@ -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=