Initial part of repos API (SEGFAULTS) [CI SKIP]

This commit is contained in:
Jef Roosens 2022-02-21 22:22:36 +01:00
parent 92ad0c51eb
commit e13252d368
Signed by untrusted user: Jef Roosens
GPG key ID: 955C0660072F691F
10 changed files with 150 additions and 39 deletions

View file

@ -12,9 +12,11 @@ const port = 8000
struct App {
web.Context
pub:
conf env.ServerConfig [required: web_global]
conf env.ServerConfig [required; web_global]
pub mut:
repo repo.Repo [required; web_global]
// This is used to claim the file lock on the repos file
git_mutex shared util.Dummy
}
pub fn server() ? {