Skip to content

Instantly share code, notes, and snippets.

@harriyott
Created March 7, 2018 11:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harriyott/85bc193881885657cc382cc7f93d82e2 to your computer and use it in GitHub Desktop.
Save harriyott/85bc193881885657cc382cc7f93d82e2 to your computer and use it in GitHub Desktop.
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