auth_api
This commit is contained in:
parent
c324283e86
commit
5609e1b530
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;
|
|
@ -12,6 +12,7 @@ import uploadB from "./form/upload.js";
|
|||
import commentB from "./form/comment.js";
|
||||
import settingsB from "./form/settings.js";
|
||||
import auth from "./form/auth.js";
|
||||
import auth_api from "./form/auth_api.js";
|
||||
import follow from './form/follow.js';
|
||||
|
||||
const routes = {
|
||||
|
@ -40,7 +41,8 @@ routes.form = {
|
|||
auth,
|
||||
comment: commentB,
|
||||
follow,
|
||||
settings: settingsB
|
||||
settings: settingsB,
|
||||
auth_api
|
||||
};
|
||||
|
||||
async function iterate(req, res, index) {
|
||||
|
|
Loading…
Reference in a new issue