You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
476 B
13 lines
476 B
9 months ago
|
const express = require("express");
|
||
|
const route = express.Router();
|
||
|
const { protect, protectAtlogin } = require("../Middleware/auth");
|
||
|
const controller = require("../Controller/Authentication");
|
||
|
const appVersion = require("../Controller/App_Versions")
|
||
|
|
||
|
route.route("/login").post(protectAtlogin, controller.login);
|
||
|
|
||
|
route.route("/appversion").get(appVersion.getAppVersion);
|
||
|
|
||
|
route.route("/checkusername").get(protectAtlogin, controller.checkUsername);
|
||
|
|
||
|
module.exports = route;
|