"use strict";

import {HttpClient} from "aurelia-fetch-client";
import {Aurelia} from "aurelia-framework";
import "bootstrap";

export function configure(aurelia: Aurelia) {
  aurelia.use
    .standardConfiguration()
    .developmentLogging();

  configureContainer(aurelia.container);

  aurelia.start().then(() =>
    aurelia.setRoot("app/config"));
}

function configureContainer(container) {
  let http = new HttpClient();
  http.configure(config => {
    config
      .useStandardConfiguration()
      .withBaseUrl("/api/");
  });

  container.registerInstance(HttpClient, http);
}

"use strict";

import {HttpClient} from "aurelia-fetch-client";
import {Aurelia} from "aurelia-framework";

export function configure(aurelia: Aurelia) {
  aurelia.use
    .standardConfiguration()
    .developmentLogging();

  configureContainer(aurelia.container);

  aurelia.start().then(() =>
    aurelia.setRoot("app/config"));
}

function configureContainer(container) {
  let http = new HttpClient();
  http.configure(config => {
    config
      .useStandardConfiguration()
      .withBaseUrl("/api/");
  });

  container.registerInstance(HttpClient, http);
}

Remove currently not needed import.
Remove currently not needed import.
