budibase/packages/server/api/routes/auth.js

9 lines
197 B
JavaScript
Raw Normal View History

2020-05-07 11:53:34 +02:00
const Router = require("@koa/router")
const controller = require("../controllers/auth")
2020-04-07 21:34:21 +02:00
2020-05-07 11:53:34 +02:00
const router = Router()
2020-04-07 21:34:21 +02:00
2020-05-07 11:53:34 +02:00
router.post("/api/authenticate", controller.authenticate)
2020-04-07 21:34:21 +02:00
2020-05-07 11:53:34 +02:00
module.exports = router