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
1 change: 0 additions & 1 deletion actions/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ func NewApp(conf Config) (*App, error) {

// Define our router middleware (logging, etc.), then define routes
router := chi.NewRouter()
// TODO(dk): form POST example with csrf protection https://github.com/gorilla/csrf
router.Use(middleware.Logger)
router.Use(middleware.Recoverer)
router.Use(secure.New(secure.Options{
Expand Down
9 changes: 0 additions & 9 deletions build/embed.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ var Manifest []byte
//go:embed dist
var distDir embed.FS

// TODO update
// DistDir returns an FS representing the `dist` directory, which has the final assets (js, css, images, etc.) compiled
// and put there by the build pipeline.
func DistDir() fs.FS {
Expand All @@ -22,11 +21,3 @@ func DistDir() fs.FS {
}
return f
}

func AssetsDir() fs.FS {
f, err := fs.Sub(DistDir(), "assets")
if err != nil {
panic(fmt.Sprintf("error opening the assets directory in the build directory (hint: try running vite): %v", err))
}
return f
}