default path prefix /.

This commit is contained in:
Miroslav Šedivý
2022-07-31 23:15:46 +02:00
parent aa9880e999
commit 61eda24521
+1 -1
View File
@@ -83,7 +83,7 @@ func (Room) Init(cmd *cobra.Command) error {
return err
}
cmd.PersistentFlags().String("path_prefix", "", "path prefix that is added to every room path")
cmd.PersistentFlags().String("path_prefix", "/", "path prefix that is added to every room path (starts with /)")
if err := viper.BindPFlag("path_prefix", cmd.PersistentFlags().Lookup("path_prefix")); err != nil {
return err
}