Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions examples/ssr/dashboard.page.gwdk
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ route "/dashboard"
layout root, dashboard
guard auth.required

server {
user := auth.User(ctx)?
=> {user}
go server {
}

view {
Expand Down
2 changes: 2 additions & 0 deletions gowdk.config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ package gowdkconfig

import (
"github.com/cssbruno/gowdk"
authaddon "github.com/cssbruno/gowdk/addons/auth"
contractsaddon "github.com/cssbruno/gowdk/addons/contracts"
"github.com/cssbruno/gowdk/addons/realtime"
)
Expand All @@ -25,6 +26,7 @@ var Config = gowdk.Config{
Output: "gowdk_cache",
},
Addons: []gowdk.Addon{
authaddon.Addon(),
contractsaddon.Addon(),
realtime.Addon(),
},
Expand Down
Loading