feat: improve archive frontend and open-source docs
This commit is contained in:
+6
-1
@@ -1,5 +1,10 @@
|
||||
import request from './request'
|
||||
import request, { getServerApiURL } from './request'
|
||||
|
||||
export function getPublicConfig() {
|
||||
return request.get('/config/public')
|
||||
}
|
||||
|
||||
export async function fetchPublicConfigForServer(init?: Parameters<typeof fetch>[1]) {
|
||||
const response = await fetch(getServerApiURL('/config/public'), init)
|
||||
return response.json()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user