Created
March 7, 2018 11:52
-
-
Save harriyott/85bc193881885657cc382cc7f93d82e2 to your computer and use it in GitHub Desktop.
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 { KittenRoutes } from './kitten-routes'; | |
export class KittenService { | |
feedKitten(kittenId: number): void { | |
const url = KittenRoutes.feedKitten(kittenId); | |
this.http.post(url, {}).subscribe(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment