ckastbjerg / next-type-safe-routes

Never should your users experience broken links again!
MIT License
70 stars 5 forks source link

Fails to properly parse routes that have periods in them #17

Closed osdiab closed 3 years ago

osdiab commented 3 years ago

I have an API route at pages/api/favicon/site.webmanifest.ts, but this library writes the type such that the TypeSafeApiRoute has an entry called /api/favicon/site, dropping the webmanifest part; that should still be there, and only the .ts should be dropped.