Browse Source

scaffolding: Use `Platform fetch:`.

Herby Vojčík 4 years ago
parent
commit
807de19a00
2 changed files with 1 additions and 2 deletions
  1. 0 1
      grunt-init-project/root/Gruntfile.js
  2. 1 1
      grunt-init-project/root/src/name.st

+ 0 - 1
grunt-init-project/root/Gruntfile.js

@@ -74,7 +74,6 @@ module.exports = function (grunt) {
                     'src/{%= name %}-Tests.st' // list all tests in dependency order
                 ],
                 amd_namespace: '{%= namespace %}',
-                jsGlobals: ['fetch'], // code calling the backend needs this atm
                 libraries: ['amber/core/SUnit', 'amber/web/Web', 'silk/Silk']
             }
         },

+ 1 - 1
grunt-init-project/root/src/name.st

@@ -45,7 +45,7 @@ endpoint
 !
 
 getApi: path
-	^ fetch value: self endpoint, path
+	^ Platform fetch: self endpoint, path
 ! !
 
 !{%= name %} methodsFor: 'starting'!