kcpetersen111 / flex

A self hosted streaming service
2 stars 0 forks source link

Update api #12

Closed Binary141 closed 1 year ago

Binary141 commented 1 year ago

This rewrites some of the web socket stuff to be broken out to just an http endpoint. Now the web socket part of the code just acts like a ping / pong style of endpoint and will write back to the client what you send the server.

The getMovies endpoint currently just returns each of the file paths to the client that it detects, while the getMovieInfo looks for a movie query parameter which is the complete file path to the video and returns some of the os.stat info about it (name, size in bytes, and file mode).

Binary141 commented 1 year ago

I added some super basic docker stuff so hopefully all one needs to do is make docker && make up if all that is wanted is to work on the front end while also being able to have the latest back end code

Binary141 commented 1 year ago

@kcpetersen111 I have changed this to now use a request body for the parameters and not within the URL itself. Let me know what you think