Skip to content
Snippets Groups Projects
Commit f078341d authored by Maximilian Giller's avatar Maximilian Giller :squid:
Browse files

Added simple structure to default graph

parent 7282cf12
No related branches found
No related tags found
No related merge requests found
Pipeline #57037 passed
<?php
require_once(__DIR__ . "/ks-datasets-database.php");
$EMPTY_SPACE = '{"links":[],"nodes":[],"objectGroups":[]}';
$EMPTY_SPACE = '{"nodes":[{"id":0,"name":"Node","type":1},{"id":1,"name":"Node","type":1}],"links":[{"source":1,"target":0}],"objectGroups":[{"id":1,"name":"Default","color":"#000000"}]}';
add_action("wp_ajax_get_space", "ks_get_space"); // Fires only for logged-in-users
add_action("wp_ajax_nopriv_get_space", 'ks_get_space' ); // Fires for everyone
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment