added sshkeys and ssh port
This commit is contained in:
1 parent
f58b62f001
commit
5fbd56ef7a
15 files changed
+528
-13
No files matched your search
@@ -2,6 +2,7 @@
|
||||
#include <httplib.h>
|
||||
#include <colors.h>
|
||||
#include "settings/telnet/telnet.hpp"
|
||||
#include "settings/ssh/ssh.hpp"
|
||||
#include "settings/dns/dns.hpp"
|
||||
#include "settings/ftp/ftp.hpp"
|
||||
#include "reboot/reboot.hpp"
|
||||
@@ -17,6 +18,13 @@ int main() {
|
||||
srv.Post("/api/settings/telnet/port/get", get_telnet_port);
|
||||
srv.Post("/api/settings/telnet/port/set", set_telnet_port);
|
||||
|
||||
srv.Post("/api/settings/ssh/status/get", get_ssh_status);
|
||||
srv.Post("/api/settings/ssh/status/set", set_ssh_status);
|
||||
srv.Post("/api/settings/ssh/keys/get", get_ssh_keys);
|
||||
srv.Post("/api/settings/ssh/keys/set", set_ssh_keys);
|
||||
srv.Post("/api/settings/ssh/port/get", get_ssh_port);
|
||||
srv.Post("/api/settings/ssh/port/set", set_ssh_port);
|
||||
|
||||
srv.Post("/api/settings/dns/get", get_dns);
|
||||
srv.Post("/api/settings/dns/set", set_dns);
|
||||
srv.Post("/api/settings/dns/servers/get", get_dns_servers);
|
||||
|
||||
Reference in new issue
Block a user