@@ -10,7 +10,7 @@ jobs:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Step 1: Pehle local files ko server par copy karein
|
||||
|
||||
- name: Copy files to VPS
|
||||
uses: appleboy/scp-action@master
|
||||
with:
|
||||
@@ -21,7 +21,7 @@ jobs:
|
||||
source: "./*"
|
||||
target: "/root/IR-Node-Setup"
|
||||
|
||||
# Step 2: Server par commands run karein (Bina git pull ke)
|
||||
|
||||
- name: Execute SSH Commands
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
|
||||
@@ -7,7 +7,7 @@ const JWT_SECRET = 'secretkey';
|
||||
const loginUser = async (req, res) => {
|
||||
try {
|
||||
const { username, password } = req.body;
|
||||
|
||||
return res.send("hello");
|
||||
|
||||
if (!username || !password) {
|
||||
return res.status(400).json({
|
||||
|
||||
Reference in New Issue
Block a user