Security: Add "header" package for setting common response headers #98

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2022-10-09 17:16:49 +02:00
parent 6038af786e
commit dc39fc44d2
18 changed files with 280 additions and 394 deletions

View File

@@ -70,10 +70,6 @@ func startAction(ctx *cli.Context) error {
// Pass this context down the chain.
cctx, cancel := context.WithCancel(context.Background())
if err := conf.Init(); err != nil {
log.Fatal(err)
}
// Initialize the index database.
conf.InitDb()