Skip to content

Instantly share code, notes, and snippets.

@mersanuzun
Created March 3, 2022 09:06
Show Gist options
  • Save mersanuzun/ff39413686c2a45248839e844fe7400b to your computer and use it in GitHub Desktop.
Save mersanuzun/ff39413686c2a45248839e844fe7400b to your computer and use it in GitHub Desktop.
ScriptKeeperService.js
import { ScriptKeeperClient } from '@/apis';
class ScriptKeeperService {
async getAppScript(appName) {
const { data } = await ScriptKeeperClient.get(`scripts/${appName}`);
return {
appSrc: data.src,
chunkSrc: data.chunk,
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment