kevmodrome
6 years ago
No known key found for this signature in database
GPG Key ID: E8F9CD141E63BF38
3 changed files with
4 additions and
4 deletions
-
packages/server/src/api/index.js
-
packages/server/src/api/routes/apikeys.js
-
packages/server/src/api/routes/index.js
|
|
|
@ -17,7 +17,7 @@ const { |
|
|
|
componentRoutes, |
|
|
|
workflowRoutes, |
|
|
|
accesslevelRoutes, |
|
|
|
apiKeysRoutes |
|
|
|
apiKeysRoutes, |
|
|
|
} = require("./routes") |
|
|
|
|
|
|
|
const router = new Router() |
|
|
|
|
|
|
|
@ -6,7 +6,7 @@ const { BUILDER } = require("../../utilities/accessLevels") |
|
|
|
const router = Router() |
|
|
|
|
|
|
|
router |
|
|
|
.get("/api/keys", authorized(BUILDER), controller.fetch) |
|
|
|
.put("/api/keys/:key", authorized(BUILDER), controller.update) |
|
|
|
.get("/api/keys", authorized(BUILDER), controller.fetch) |
|
|
|
.put("/api/keys/:key", authorized(BUILDER), controller.update) |
|
|
|
|
|
|
|
module.exports = router |
|
|
|
|
|
|
|
@ -27,5 +27,5 @@ module.exports = { |
|
|
|
componentRoutes, |
|
|
|
workflowRoutes, |
|
|
|
accesslevelRoutes, |
|
|
|
apiKeysRoutes |
|
|
|
apiKeysRoutes, |
|
|
|
} |
|
|
|
|