Feat: refactor routes.js express entrypoint config
Feat: express config script refactor Feat: add state and settingsCache files
This commit is contained in:
parent
c3f8f98c26
commit
85235eaa13
22 changed files with 807 additions and 1 deletions
11
lib/routes/ownAuthorizationRoutes.js
Normal file
11
lib/routes/ownAuthorizationRoutes.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
const express = require('express')
|
||||
const router = express.Router()
|
||||
|
||||
const ca = require('../middlewares/ca')
|
||||
const pair = require('../middlewares/pair')
|
||||
const populateDeviceId = require('../middlewares/populateDeviceId')
|
||||
|
||||
router.post('/pair', populateDeviceId, pair)
|
||||
router.get('/ca', ca)
|
||||
|
||||
module.exports = router
|
||||
Loading…
Add table
Add a link
Reference in a new issue