Open companje opened 9 years ago
I can confirm this for 0.10.6. The folder sketches has not been created yet. After adding a sketch the API does return a proper list.
Actually, the 0.10.4 version only seems to check sketch/status
, even when there are multi sketches stored. There was no sketch/list
api in 0.10.4.
I found this in a 0.10.4 wifibox.log file. Not sure if it's a problem but it's weird.
01-01 00:04:38 (error) calling function 'list' in API module 'sketch' somehow failed ('/usr/share/lua/wifibox/rest/api/api_sketch.lua:52: cannot open /root/sketches: No such file or directory')