WIP: add missing handlers, services nd repositories
This commit is contained in:
@@ -24,7 +24,7 @@ func main() {
|
||||
if err := config.InitConfig(); err != nil {
|
||||
log.Fatalf("Failed to initialize config: %v", err)
|
||||
}
|
||||
e := router.New(handlers.NewAdminHandler(db, config.ServerConfig.ApiSecret), handlers.NewMediaHandler(db))
|
||||
e := router.New(handlers.NewAdminHandler(db), handlers.NewMediaHandler(db))
|
||||
|
||||
// Cancel the context on SIGINT / SIGTERM
|
||||
ctx, stop := signal.NotifyContext(context.Background(), os.Interrupt, syscall.SIGTERM)
|
||||
|
||||
Reference in New Issue
Block a user