Update server configuration to disable serving frontend
This commit is contained in:
parent
5cfb906a4f
commit
a88946bb7f
7 changed files with 57 additions and 42 deletions
4
main.go
4
main.go
|
@ -7,6 +7,7 @@ import (
|
|||
"net/http"
|
||||
|
||||
"donetick.com/core/config"
|
||||
"donetick.com/core/frontend"
|
||||
"github.com/gin-contrib/cors"
|
||||
"github.com/gin-gonic/gin"
|
||||
"go.uber.org/fx"
|
||||
|
@ -77,6 +78,8 @@ func main() {
|
|||
fx.Provide(thing.NewWebhook),
|
||||
fx.Provide(thing.NewHandler),
|
||||
|
||||
fx.Provide(frontend.NewHandler),
|
||||
|
||||
// fx.Invoke(RunApp),
|
||||
fx.Invoke(
|
||||
chore.Routes,
|
||||
|
@ -84,6 +87,7 @@ func main() {
|
|||
circle.Routes,
|
||||
thing.Routes,
|
||||
thing.Webhooks,
|
||||
frontend.Routes,
|
||||
|
||||
func(r *gin.Engine) {},
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue