auth_api
This commit is contained in:
parent
62a0766abb
commit
3929c07717
2 changed files with 12 additions and 1 deletions
9
form/auth_api.js
Normal file
9
form/auth_api.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
import Route from "../route.js";
|
||||
import auth from "../form/auth.js";
|
||||
|
||||
let main = new Route([auth], async function (req, res, input) {
|
||||
let { username, valid } = input;
|
||||
res.send({ username, valid });
|
||||
});
|
||||
|
||||
export default main;
|
Loading…
Add table
Add a link
Reference in a new issue