Skip to content

Commit

Permalink
Removed unused controller class
Browse files Browse the repository at this point in the history
  • Loading branch information
alirizaadiyahsi committed Jul 18, 2018
1 parent 9519434 commit c163cb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 48 deletions.
8 changes: 4 additions & 4 deletions src/Kodkod.Web.Vue/ClientApp/views/fetchdata/fetchdata.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Vue from 'vue';
import { Component } from 'vue-property-decorator';

interface WeatherForecast {
interface IWeatherForecast {
dateFormatted: string;
temperatureC: number;
temperatureF: number;
Expand All @@ -10,11 +10,11 @@ interface WeatherForecast {

@Component
export default class FetchDataComponent extends Vue {
forecasts: WeatherForecast[] = [];
forecasts: IWeatherForecast[] = [];

mounted() {
fetch('api/SampleData/WeatherForecasts')
.then(response => response.json() as Promise<WeatherForecast[]>)
fetch('http://localhost:60320/api/Test/WeatherForecasts')
.then(response => response.json() as Promise<IWeatherForecast[]>)
.then(data => {
this.forecasts = data;
});
Expand Down
44 changes: 0 additions & 44 deletions src/Kodkod.Web.Vue/Controllers/SampleDataController.cs

This file was deleted.

0 comments on commit c163cb5

Please sign in to comment.