This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Controller from '@ember/controller'; | |
import { tracked } from '@glimmer/tracking'; | |
import { action } from '@ember/object'; | |
import { run } from '@ember/runloop'; | |
const { stringify } = JSON; | |
export default class ApplicationController extends Controller { | |
maxId = 6; | |
@tracked |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import DS from 'ember-data'; | |
export default DS.RESTAdapter.extend({ | |
// namespace: 'api/v2', | |
host: 'http://localhost:8080', | |
find: function(store, type, id, snapshot) { | |
return this.ajax(this.buildURL(type.typeKey, id, snapshot, 'find'), 'GET'); | |
}, |