MCPcopy Create free account
hub / github.com/getgridea/gridea / initDataStore

Method initDataStore

src/server/model.ts:31–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 }
30
31 private initDataStore(): void {
32 const settingAdapter = new FileSync(path.join(this.appDir, 'config/setting.json'))
33 const setting = low(settingAdapter)
34 this.$setting = setting
35
36 const postsAdapter = new FileSync(path.join(this.appDir, 'config/posts.json'))
37 const posts = low(postsAdapter)
38 this.$posts = posts
39
40 const themeAdapter = new FileSync(path.join(this.appDir, 'config/theme.json'))
41 const theme = low(themeAdapter)
42 this.$theme = theme
43 }
44}

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected