mirror of https://github.com/Budibase/budibase.git
5 changed files with 38 additions and 29 deletions
@ -0,0 +1,18 @@ |
|||||
|
const couchdb = require("../../db"); |
||||
|
|
||||
|
const controller = { |
||||
|
forgotPassword: async ctx => { |
||||
|
|
||||
|
}, |
||||
|
setPassword: async ctx => { |
||||
|
|
||||
|
}, |
||||
|
changePassword: async ctx => { |
||||
|
|
||||
|
}, |
||||
|
authenticate: async ctx => { |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
|
||||
|
module.exports = controller; |
||||
@ -0,0 +1,9 @@ |
|||||
|
const Router = require("@koa/router"); |
||||
|
const controller = require("../../controllers/auth"); |
||||
|
|
||||
|
const router = Router(); |
||||
|
|
||||
|
router |
||||
|
.post("/api/authenticate", controller.authenticate); |
||||
|
|
||||
|
module.exports = router; |
||||
Loading…
Reference in new issue