This is the server and website code for HTTVideo.
the server imports:
- path
- multer
- express.js
- @replit/database It stores a Key in the Replit Database called Videos that contains some json.
/loads index.html/new.htmlis the webpage to create a new video/admin.htmlis the admin panel
/upload?name=uploads a file to the server with the name/videos?data=if the data query is "names" it return the names, if its "files" it returns the filenames else it returns a json response with "files" and "names"/delete?passwrd=mostly accessed from the admin panel, only deletes the db and the uploads directory if the correct password is provided/?watch=used to watch a video.