{"repo":"spa5k/fastify-file-routes","free":true,"listed":false,"github":"https://github.com/spa5k/fastify-file-routes","clone":"git clone https://github.com/spa5k/fastify-file-routes.git","description":"A Fastify plugin that provides a file system routes, based on the way Next.JS file system routing works, including all possible features.","language":"TypeScript","stars":37,"topics":["fastify","fastify-plugin","nextjs","routing","filesystem","hacktoberfest"],"license":"MIT","category":"saas-starters-boilerplates","readme_excerpt":"Fastify File Routes A Fastify plugin that provides a file system routes, based on the way Next.JS file system routing works, including all possible features. :sparkles: Features 1. File System Routing. 2. Index Routes. 3. Nested Routes. 4. Dynamic Route Segments. 5. Catch All (Wildcard \\ ) Routes. 6. Multiple parameters. eg /users/:id-:name :rocket: Installation :blue book: Usage/Examples 1. Register the Plugin. 2. Create the routes directory. 3. Create your first route in the routes directory 4. Access the Parameters. 5. Wildcard (\\ ) routes. 6. Post Request.. 7. Prefix Route 8. Multiple Parameters :information source: Info 1. Check the examples folder in /examples to see how to use the plugin. 2. route.prefixTrailingSlash has been set to 'both'. :arrow forward: Route module definition Method specification for attributes is available here: Method specification :information source: attributes url and method are dynamically provided Allowed attributes mapped to Http methods in module: - delete - get - head - patch - post - put - options :arrow forward: Skipping files to skip file in routes directory, prepend the . or character to filename examples: :warning: also any .test.js and .test.ts are skipped! this is useful if you want to have a lib file which contains functions that don't have to be a route, so just create the file with prepending character TODO 1. Adding support for optional wildcard routes - [[...id]]. 2. More tests. 3. Better typescript stuff for validation and in","default_branch":null,"files":null,"tree":[],"storefront":"/r/spa5k","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/spa5k/fastify-file-routes/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}