Skip to content

Commit

Permalink
ADD Store Images with right endings
Browse files Browse the repository at this point in the history
  • Loading branch information
fbury-hec committed Mar 7, 2024
1 parent 3056d32 commit 6353e35
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 7 additions & 1 deletion graph/schema.resolvers.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions server.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ func main() {

fs := http.FileServer(http.Dir(viper.GetString(config.FILE_CONNSTR)))
router.Handle("/assets/*", http.StripPrefix("/assets/", fs))
/*
router.Get("/assets/{dir}/{file}", func(writer http.ResponseWriter, request *http.Request) {
log.Info("Got Request", request.URL)
log.Info("Got file", chi.URLParam(request, "file"))
log.Info("Got dir", chi.URLParam(request, "dir"))
})*/

router.Handle("/", playground.Handler("Obstwiese", viper.GetString(config.GQL_PATH)))
router.Handle(viper.GetString(config.GQL_PATH), srv)
Expand Down

0 comments on commit 6353e35

Please sign in to comment.