Skip to content

Commit

Permalink
upload file
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenilk committed Jun 3, 2023
1 parent 34b5116 commit f3d0439
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 2 deletions.
Binary file removed App/Screenshot from 2023-06-02 19-11-21.png
Binary file not shown.
Binary file added App/app-release.apk
Binary file not shown.
Binary file removed App/mongodb-compass_1.37.0_amd64.deb
Binary file not shown.
4 changes: 3 additions & 1 deletion api.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ app.get("/version", (req, res) => __awaiter(void 0, void 0, void 0, function* ()
yield fs.readFile("appversion.txt", 'utf-8', (err, data) => __awaiter(void 0, void 0, void 0, function* () {
let json = yield JSON.stringify({ "version": data });
res.json(json);
console.log(data);
}));
}));
app.get("/updatePage", (req, res) => {
Expand All @@ -67,6 +66,9 @@ app.get("/updatePage", (req, res) => {
res.write('</form>');
return res.end();
});
app.get("/downloadapp", (req, res) => __awaiter(void 0, void 0, void 0, function* () {
res.download(path.join(__dirname + "/App/app-release.apk"));
}));
app.post("/updateApp", (req, res) => {
var form = formidable({ multiples: true });
console.log(form);
Expand Down
3 changes: 3 additions & 0 deletions api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ app.get("/updatePage", (req: Request, res: Response) => {
res.write('</form>');
return res.end();
})
app.get("/downloadapp",async(req: Request, res: Response)=>{
res.download(path.join(__dirname+"/App/app-release.apk"))
})
app.post("/updateApp", (req: Request, res: Response) => {
var form = formidable({multiples:true})
console.log(form)
Expand Down
2 changes: 1 addition & 1 deletion appversion.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
fs
1.12

2 comments on commit f3d0439

@vercel
Copy link

@vercel vercel bot commented on f3d0439 Jun 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

refrigurator-api – ./

refrigurator-api.vercel.app
refrigurator-api-lenilk.vercel.app
refrigurator-api-git-main-lenilk.vercel.app

@vercel
Copy link

@vercel vercel bot commented on f3d0439 Jun 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.