Skip to content

Commit

Permalink
enhance: core upgrader
Browse files Browse the repository at this point in the history
  • Loading branch information
0xJacky committed May 6, 2023
1 parent a2fe98e commit 9ac5708
Show file tree
Hide file tree
Showing 15 changed files with 694 additions and 340 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "nginx-ui-frontend-next",
"private": true,
"version": "1.8.4",
"version": "1.9.9",
"type": "commonjs",
"scripts": {
"dev": "vite",
Expand Down
8 changes: 6 additions & 2 deletions frontend/src/api/upgrade.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
import http from '@/lib/http'

const upgrade = {
get_latest_release() {
return http.get('/upgrade/release')
get_latest_release(channel: string) {
return http.get('/upgrade/release', {
params: {
channel
}
})
},
current_version() {
return http.get('/upgrade/current')
Expand Down
Loading

0 comments on commit 9ac5708

Please sign in to comment.