diff --git a/cmds/server/.loader.go.swp b/cmds/server/.loader.go.swp new file mode 100644 index 00000000..e3b01b78 Binary files /dev/null and b/cmds/server/.loader.go.swp differ diff --git a/cmds/server/loader.go b/cmds/server/loader.go index 42e01e59..46e9c57b 100644 --- a/cmds/server/loader.go +++ b/cmds/server/loader.go @@ -305,6 +305,9 @@ func LoadDirsSample(reg *registry.Registry) *registry.Registry { ErrFatalf(r.SetSaveDefault("vext", "a ver string")) ErrFatalf(reg.SetSave("resptr", "/dirs/d1/files/f1/versions/v1")) + ErrFatalf(r.SetSave("#resource", `{"hello":"world"}`)) + ErrFatalf(r.SetSave("contenttype", `application/json`)) + _, err = g.AddResource("datas", "d1", "v1") _, err = g.AddResourceWithObject("files", "fx", "",