Skip to content

Commit

Permalink
Merge branch 'master' of github.com:nmelhado/league-page into legends…
Browse files Browse the repository at this point in the history
…-league
  • Loading branch information
nmelhado committed Aug 17, 2021
2 parents b19b0fb + 0d9729a commit 0844f1c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/routes/api/checkGlobalVersion.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {version} from '$lib/version';

export async function get() {
return {
status: 200,
body: JSON.stringify(version)
};
}
2 changes: 1 addition & 1 deletion src/routes/api/checkVersion.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {version} from '$lib/version';

export async function get() {
const res = await fetch('https://league-page.nmelhado.com/api/checkVersion', {compress: true})
const res = await fetch('https://league-page.nmelhado.com/api/checkGlobalVersion', {compress: true})
let needsUpdate = false;
if(res.ok) {
const globalVersion = await res.json();
Expand Down

1 comment on commit 0844f1c

@vercel
Copy link

@vercel vercel bot commented on 0844f1c Aug 17, 2021

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.