ngx.ts 371 B

1234567891011121314151617
  1. import http from '@/lib/http'
  2. const ngx = {
  3. build_config(ngxConfig: any) {
  4. return http.post('/ngx/build_config', ngxConfig)
  5. },
  6. tokenize_config(content: string) {
  7. return http.post('/ngx/tokenize_config', {content})
  8. },
  9. format_code(content: string) {
  10. return http.post('/ngx/format_code', {content})
  11. }
  12. }
  13. export default ngx