MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / getConfig

Method getConfig

js/botasaurus-server-js/src/server.ts:143–171  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141 public endpoints: Record<string, Function> = {};
142
143 getConfig(): Record<string, any> {
144 if (!this.config) {
145 if (electronConfig.productName === 'Todo My App Name') {
146 this.config = {
147 header_title: 'Botasaurus',
148 right_header: {
149 text: 'Love It? Star It! ★',
150 link: 'https://github.com/omkarcloud/botasaurus',
151 },
152 readme: getReadme(),
153 };
154 }else {
155 this.config = {
156 header_title: electronConfig.productName,
157 right_header: this.emailSupport ? {
158 text: 'Need Help? Mail Us!',
159 link: createEmailUrl(this.emailSupport),
160 } : {
161 text: '',
162 link: '',
163 },
164 readme: getReadme(),
165 };
166 }
167
168 }
169 this.config.enable_cache = this.cache
170 return this.config;
171 }
172
173 configure(
174 {

Callers 1

executeGetAppPropsFunction · 0.80

Calls 2

getReadmeFunction · 0.85
createEmailUrlFunction · 0.85

Tested by

no test coverage detected