Advent of Code, Day 7: Figure out routes

December 7, 2019
Category: Development

Day 7! Today I’m traveling, but I got some work done on the plane: I figured out my routes and started breaking apart components to their individual functions.

My routes:

Router.map(function() {
  this.route('login');
  this.route('signup');
  this.route('gardens', function() {
    this.route('edit', { path: ':slug' });
    this.route('new');
  });
  this.route('public-profile', { path: ':user_slug' }, function() {
    this.route('garden', { path: ':garden_slug' });
  });
});

Tomorrow’s goal:

  • Finish breaking the components apart
  • Get the new routes working

Find this post useful?

Buy me a coffeeBuy me a coffee