kiliman / remix-flat-routes

Remix package to define routes using the flat-routes convention
MIT License
640 stars 22 forks source link

Unnecessary trailing slash #130

Open ivosabev opened 2 weeks ago

ivosabev commented 2 weeks ago

Maybe there are some considerations I am not aware of but why add a trailing slash some to paths?

'routes/_login+/login': {
  path: 'login',
  index: undefined,
  caseSensitive: undefined,
  id: 'routes/_login+/login',
  parentId: 'routes/_login+/_layout',
  file: 'routes/_login+/login.tsx'
},
'routes/_login+/register+/_index': {
  path: 'register/',
  index: true,
  caseSensitive: undefined,
  id: 'routes/_login+/register+/_index',
  parentId: 'routes/_login+/_layout',
  file: 'routes/_login+/register+/_index.tsx'
},