mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat(api): example middleware (#48434)
* feat(api): add middleware example * feat(api): add `@fastify/middie`, reorder for alphabetness * [skip-ci] [skip ci]
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
6d46f61fe9
commit
f7644bec68
+25
-16
@@ -1,31 +1,40 @@
|
||||
{
|
||||
"name": "@freecodecamp/api",
|
||||
"version": "0.0.1",
|
||||
"author": "freeCodeCamp <team@freecodecamp.org>",
|
||||
"bugs": {
|
||||
"url": "https://github.com/freeCodeCamp/freeCodeCamp/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fastify/middie": "8.0.0",
|
||||
"@fastify/mongodb": "6.1.0",
|
||||
"fastify": "4.9.2",
|
||||
"fastify-plugin": "4.3.0"
|
||||
},
|
||||
"description": "The freeCodeCamp.org open-source codebase and curriculum",
|
||||
"license": "BSD-3-Clause",
|
||||
"private": true,
|
||||
"engines": {
|
||||
"node": ">=18",
|
||||
"npm": ">=8"
|
||||
},
|
||||
"homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme",
|
||||
"license": "BSD-3-Clause",
|
||||
"main": "none",
|
||||
"name": "@freecodecamp/api",
|
||||
"nodemonConfig": {
|
||||
"env": {
|
||||
"NODE_ENV": "development"
|
||||
},
|
||||
"ignore": [
|
||||
"**/*.js"
|
||||
]
|
||||
},
|
||||
"private": true,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/freeCodeCamp/freeCodeCamp.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/freeCodeCamp/freeCodeCamp/issues"
|
||||
},
|
||||
"homepage": "https://github.com/freeCodeCamp/freeCodeCamp#readme",
|
||||
"author": "freeCodeCamp <team@freecodecamp.org>",
|
||||
"main": "none",
|
||||
"scripts": {
|
||||
"build": "tsc index.ts",
|
||||
"start": "NODE_ENV=production node index.js",
|
||||
"develop": "NODE_ENV=development nodemon index.ts"
|
||||
"develop": "nodemon index.ts"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fastify/mongodb": "6.1.0",
|
||||
"fastify": "4.9.2",
|
||||
"fastify-plugin": "4.3.0"
|
||||
}
|
||||
"version": "0.0.1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user