Page MenuHomePhabricator

D8990.id30468.diff
No OneTemporary

D8990.id30468.diff

diff --git a/lib/facts/backup-service.js b/lib/facts/backup-service.js
new file mode 100644
--- /dev/null
+++ b/lib/facts/backup-service.js
@@ -0,0 +1,38 @@
+// @flow
+
+export type BackupServiceHTTPEndpoint = {
+ +path: string,
+ +method: 'GET' | 'POST',
+};
+
+const httpEndpoints = Object.freeze({
+ // endpoints with auth
+ UPLOAD_BACKUP: {
+ path: '/backups',
+ method: 'POST',
+ },
+ GET_USER_KEYS_AUTH: {
+ path: '/backups/:backup_id/user_keys',
+ method: 'GET',
+ },
+ GET_USER_DATA: {
+ path: '/backups/:backup_id/user_data',
+ method: 'GET',
+ },
+ // endpoints without auth
+ GET_BACKUP_ID: {
+ path: '/backups/latest/:username/backup_id',
+ method: 'GET',
+ },
+ GET_USER_KEYS: {
+ path: '/backups/latest/:username/user_keys',
+ method: 'GET',
+ },
+});
+
+const config = {
+ url: 'http://localhost:50052',
+ httpEndpoints,
+};
+
+export default config;

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 26, 5:42 PM (20 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2585629
Default Alt Text
D8990.id30468.diff (913 B)

Event Timeline