This commit is contained in:
18
startos/fileModels/storeJson.ts
Normal file
18
startos/fileModels/storeJson.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { FileHelper, z } from '@start9labs/start-sdk'
|
||||
import { sdk } from '../sdk'
|
||||
|
||||
const shape = z.object({
|
||||
password: z.string().nullable().catch(null),
|
||||
btcAuth: z
|
||||
.object({
|
||||
username: z.string(),
|
||||
password: z.string(),
|
||||
})
|
||||
.nullable()
|
||||
.catch(null),
|
||||
})
|
||||
|
||||
export const storeJson = FileHelper.json(
|
||||
{ base: sdk.volumes.main, subpath: 'store.json' },
|
||||
shape,
|
||||
)
|
||||
Reference in New Issue
Block a user