spa5k / fastify-file-routes Goto Github PK
View Code? Open in Web Editor NEWA Fastify plugin that provides a file system routes, based on the way Next.JS file system routing works, including all possible features.
License: MIT License
A Fastify plugin that provides a file system routes, based on the way Next.JS file system routing works, including all possible features.
License: MIT License
Support for generics for types in methods.
Something similar to what fastify already has for their method routes.
for instances:
server.get<{
Querystring: IQuerystring;
Headers: IHeaders;
Reply: ReplyBodyType;
}>(fullpath, async (request, reply) => {
console.log("name");
reply.status(200).send({ success: true, message: "hello world" });
});
This types all of the querystring, headers, and reply using a very nice and simple and neat syntax.
Typing is quite neat and useful in TS. And this way and syntax is also very nice.
Thanks
Hi,
I has recently started to receive this error: " Unknown file extension ".ts" for /app/src/routes/index.ts"
Appears in a place where fastify-file-routes package tries to import a file const module2 = await import(path5);
path5 = '/app/src/routes/index.ts'
Help please!
Start the app with command tsnd -r tsconfig-paths/register --poll --respawn --inspect=0.0.0.0:9229 src/server.ts
ts-node-dev ver. 2.0.0 (using ts-node ver. 10.9.1, typescript ver. 4.5.2)
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
Warning
These dependencies are deprecated:
Datasource | Name | Replacement PR? |
---|---|---|
npm | npm-run-all |
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)@commitlint/cli
, @commitlint/config-conventional
)@semantic-release/commit-analyzer
, @semantic-release/github
, @semantic-release/npm
, @semantic-release/release-notes-generator
, semantic-release
)@typescript-eslint/eslint-plugin
, @typescript-eslint/parser
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@semantic-release/changelog
, @semantic-release/github
, @semantic-release/npm
, semantic-release
)@commitlint/cli
, @commitlint/config-conventional
).github/workflows/codeql-analysis.yml
actions/checkout v2
github/codeql-action v1
github/codeql-action v1
github/codeql-action v1
.github/workflows/diagram.yml
.github/workflows/release.yml
actions/checkout v2
pnpm/action-setup v2.0.1
actions/setup-node v2
ubuntu 20.04
.github/workflows/test.yml
actions/checkout v2
pnpm/action-setup v2.0.1
actions/setup-node v2
ubuntu 20.04
package.json
fastify-plugin 3.0.1
picocolors 1.0.0
@commitlint/cli 16.2.1
@commitlint/config-conventional 16.2.1
@semantic-release/changelog 6.0.1
@semantic-release/commit-analyzer 9.0.2
@semantic-release/git 10.0.1
@semantic-release/github 8.0.2
@semantic-release/npm 9.0.1
@semantic-release/release-notes-generator 10.0.3
@spa5k/eslint-config 0.0.2
@types/jest 27.4.1
@types/node 17.0.21
@typescript-eslint/eslint-plugin 5.14.0
@typescript-eslint/parser 5.14.0
c8 7.11.0
commitizen 4.2.4
dotenv 16.0.0
esbuild 0.14.25
eslint 8.10.0
eslint-config-galex 3.6.5
eslint-import-resolver-node 0.3.6
eslint-plugin-import 2.25.4
eslint-plugin-inclusive-language 2.2.0
eslint-plugin-jest-formatting 3.1.0
eslint-plugin-promise 6.0.0
eslint-plugin-sonarjs 0.12.0
eslint-plugin-unicorn 41.0.0
fastify 3.27.4
fastify-plugin 3.0.1
husky 7.0.4
node-dev 7.2.0
node-fetch 3.2.2
npm-run-all 4.1.5
prettier 2.5.1
semantic-release 19.0.2
start-server-and-test 1.14.0
ts-node 10.7.0
tslib 2.3.1
tsup 5.12.9
typescript 4.6.2
vite 2.8.6
vitest 0.6.0
fastify >=3.0.0
pnpm 6.31.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.