Skip to content

Commit

Permalink
developed share feature & general fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matteo-convertino committed Mar 18, 2024
1 parent 0120d48 commit 03e4ca7
Show file tree
Hide file tree
Showing 46 changed files with 129,059 additions and 542 deletions.
12 changes: 11 additions & 1 deletion appinfo/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,16 @@
'routes' => [
['name' => 'page#index', 'url' => '/', 'verb' => 'GET'],

['name' => 'sync#update', 'url' => '/accounts/sync', 'verb' => 'POST'],

['name' => 'account#getAll', 'url' => '/accounts', 'verb' => 'GET'],
['name' => 'account#sync', 'url' => '/accounts/sync', 'verb' => 'POST'],
['name' => 'account#create', 'url' => '/accounts', 'verb' => 'POST'],
['name' => 'account#get', 'url' => '/accounts/{id}', 'verb' => 'GET'],
['name' => 'account#update', 'url' => '/accounts', 'verb' => 'PUT'],
['name' => 'account#delete', 'url' => '/accounts/{id}', 'verb' => 'DELETE'],
// ['name' => 'account#destroy', 'url' => '/accounts/destroy/{id}', 'verb' => 'DELETE'],
['name' => 'account#import', 'url' => '/accounts/import', 'verb' => 'POST'],
['name' => 'account#updateCounter', 'url' => '/accounts/update-counter', 'verb' => 'POST'],

['name' => 'setting#get', 'url' => '/settings', 'verb' => 'GET'],
['name' => 'setting#save', 'url' => '/settings', 'verb' => 'POST'],
Expand All @@ -32,6 +34,14 @@
['name' => 'password#update', 'url' => '/password', 'verb' => 'PUT'],
['name' => 'password#check', 'url' => '/password/check', 'verb' => 'POST'],

['name' => 'sharedAccount#getByUser', 'url' => '/share', 'verb' => 'GET'],
['name' => 'sharedAccount#getByAccount', 'url' => '/share/{id}', 'verb' => 'GET'],
['name' => 'sharedAccount#create', 'url' => '/share', 'verb' => 'POST'],
['name' => 'sharedAccount#update', 'url' => '/share', 'verb' => 'PUT'],
['name' => 'sharedAccount#unlock', 'url' => '/share/unlock', 'verb' => 'POST'],
['name' => 'sharedAccount#delete', 'url' => '/share/{accountId}', 'verb' => 'DELETE'],
['name' => 'sharedAccount#getUsers', 'url' => '/get-users/{accountId}', 'verb' => 'GET'],
['name' => 'sharedAccount#updateCounter', 'url' => '/share/update-counter', 'verb' => 'POST'],
// ['name' => 'info#get', 'url' => '/info', 'verb' => 'GET'],
]
];
127,005 changes: 127,002 additions & 3 deletions js/otpmanager-main.js

Large diffs are not rendered by default.

63 changes: 0 additions & 63 deletions js/otpmanager-main.js.LICENSE.txt

This file was deleted.

2 changes: 1 addition & 1 deletion js/otpmanager-main.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class Application extends App {
public const APP_ID = 'otpmanager';
public const ACCOUNTS_DB = 'otpmanager_accounts';
public const SETTINGS_DB = 'otpmanager_settings';
public const SHARED_ACCOUNTS_DB = 'otpmanager_shared';

public function __construct() {
parent::__construct(self::APP_ID);
Expand Down
Loading

0 comments on commit 03e4ca7

Please sign in to comment.