aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/views/index/Notepad/changelog.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/views/index/Notepad/changelog.ts')
-rw-r--r--src/views/index/Notepad/changelog.ts16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/views/index/Notepad/changelog.ts b/src/views/index/Notepad/changelog.ts
new file mode 100644
index 0000000..111f8f2
--- /dev/null
+++ b/src/views/index/Notepad/changelog.ts
@@ -0,0 +1,16 @@
+import axios from 'axios';
+
+export const getChangeLog = async() =>
+{
+ const changeLog = axios.get('https://api.github.com/repos/HydroRoll-Team/HydroRoll/releases/latest')
+ .then(res => {
+ console.log(res.data);
+ const ChangeLogMessage ="## "+ res.data['tag_name']+"\n"+res.data['body'];
+ return ChangeLogMessage;
+ })
+ .catch(err => {
+ console.log(err);
+ return err.toString();
+ })
+ return changeLog;
+}