mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-07-25 05:01:54 +00:00
Added hability to create servers
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import Storage from '../../utils/Storage';
|
||||
import { assoc } from 'ramda';
|
||||
import { v4 as uuid } from 'uuid';
|
||||
|
||||
const SERVERS_STORAGE_KEY = 'servers';
|
||||
|
||||
@@ -20,7 +18,6 @@ export class ServersService {
|
||||
|
||||
createServer = server => {
|
||||
const servers = this.listServers();
|
||||
server = assoc('id', uuid(), server);
|
||||
servers[server.id] = server;
|
||||
this.storage.set(SERVERS_STORAGE_KEY, servers);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user