3 releases
0.1.3 | Feb 2, 2025 |
---|---|
0.1.2 | Feb 2, 2025 |
0.1.0 | Feb 1, 2025 |
#1140 in Web programming
340 downloads per month
55KB
1.5K
SLoC
NOTE
DO NOT install this.
This is actively being worked on, and I published it to make sure it compiles correctly
Environment
Rename example.env
-> .env
, then fill out the variables accordingly.
API
/media/[path]
Note - path is a directory if it ends with '/'.
All directories are created upon access.
GET
(file/dir) - Retrieves the file, or lists the directory contents
DELETE
(file) - Deletes the file
POST
(dir) - Uploads a file to the directory. (sent via multipart)\
TODO
- for each [file] uploaded, store a [file].meta that contains all the names the media is aliased under. can be used to restore the database and download everything
Dependencies
~79MB
~1.5M SLoC