refactor and to go mod

This commit is contained in:
YouROK
2021-02-18 16:56:55 +03:00
parent 0e49a98626
commit 94f212fa75
50 changed files with 13 additions and 29 deletions

41
server/web/api/doc.go Normal file
View File

@@ -0,0 +1,41 @@
package api
/*
API
respnose JSON{
}
request JSON{
Action string
}
echo version
{
add torrent
remove torrent
list all torrents
get torrent
stream torrent
} all in one function
{
get viewed files mark in torrent
set viewed files mark in torrent
rem viewed files mark in torrent
} all in one
{
get m3u list of one torrent
get m3u list of one torrent and resume play
get m3u list of all torrent
}
{
get settings
set settings
}
???
*/