Skip to content
/ cdn Public
forked from HazemMeqdad/cdn

images & videos host api with simple panel to upload files

License

Notifications You must be signed in to change notification settings

Fadi002/cdn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cdn

You can upload your images & videos & other files to your server and use the perfic api. I know the forntend is trash but this i can do

Pages

  • / - home page
  • /login - login page
  • /show - show what is you uploaded it
  • /uploads/<user_id>/<filename> - open file

API

Please show the code to know what are required fileds

  • /api/upload - POST method to upload file with add file to form (required authorization)
  • /api/delete - DELETE method to remove file (required authorization)
  • /api/user - GET method to get user info with id like http://my-host/api/user?id=123
  • /api/user/uploads - GET method to get uploads user (required authorization)
  • /api/auth/register - POST method to register new account
  • /api/auth/login - POST method to get your token need username & password

Authorization

The headers must be add

"Authorization": "Bearer <your-token>"

Privacy

privacy of passwords it save with hash md5 no body can know your password

About

images & videos host api with simple panel to upload files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 36.9%
  • CSS 31.3%
  • Python 26.2%
  • JavaScript 5.6%