Skip to content

Instantly share code, notes, and snippets.

@harriyott
Last active March 7, 2018 13:18
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/47c705bbfaeb1fdb969d93fc3771bcc6 to your computer and use it in GitHub Desktop.
Save harriyott/47c705bbfaeb1fdb969d93fc3771bcc6 to your computer and use it in GitHub Desktop.
export class KittenRoutes {
static readonly listKittens = 'api/kittens/list';
static feedKitten(kittenId: any): string {
return `api/kitten/${kittenId}/feed`;
}
static adoptKitten(kittenId: any): string {
return `api/kitten/${kittenId}/feed`;
}
static renameKitten(kittenId: any, newName: any): string {
return `api/kitten/${kittenId}/rename/${newName}`;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment