Co-authored-by: Michael Chihlas <michael@resolutionflow.com> Co-committed-by: Michael Chihlas <michael@resolutionflow.com>
16 lines
330 B
TypeScript
16 lines
330 B
TypeScript
import apiClient from './client'
|
|
|
|
export interface PublicConfig {
|
|
self_serve_enabled: boolean
|
|
oauth_providers: string[]
|
|
}
|
|
|
|
export const configApi = {
|
|
async getPublic(): Promise<PublicConfig> {
|
|
const response = await apiClient.get<PublicConfig>('/config/public')
|
|
return response.data
|
|
},
|
|
}
|
|
|
|
export default configApi
|