Implement Read Only mode

This commit is contained in:
Las Zenow 2017-05-21 10:16:16 +00:00
parent 6464d92dd4
commit e1bd235785
19 changed files with 544 additions and 335 deletions

View file

@ -169,7 +169,7 @@ func UpdateLogger(loggerConfig string) error {
return log.ReplaceLogger(logger)
}
func InitRouter(db *database.DB, sg *StatsGatherer, assetsPath string) {
func InitRouter(db database.DB, sg *StatsGatherer, assetsPath string) {
const idPattern = "[0-9a-zA-Z\\-\\_]{16}"
r := mux.NewRouter()