Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: add func to fetch recent announcement

thecodrr4a349a3c273f
diff --git a/packages/core/api/index.js b/packages/core/api/index.js
index 53ed9bcee..1ba542447 100644
--- a/packages/core/api/index.js
+++ b/packages/core/api/index.js
@@ -186,6 +186,10 @@ class Database {
version() {
return http.get(`${Constants.API_HOST}/version`);
}
+
+ announcement() {
+ return http.get(`${Constants.API_HOST}/announcements/recent`);
+ }
}
export default Database;