This commit is contained in:
biglyderv 2024-10-19 16:00:03 -04:00
parent c324283e86
commit 5609e1b530
2 changed files with 12 additions and 1 deletions

9
form/auth_api.js Normal file
View 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;

View file

@ -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) {