git clone https://github.com/Havenstd06/Limg
composer install
.env
refer to .env.example
php artisan key:generate
php artisan migrate:fresh --seed
(highly recommanded)php artisan storage:link
npm i && npm run dev
(or npm run prod)database/factories/UserFactory.php
& database/seeds/UsersTableSeeder
)CLIENT ID
& CLIENT SECRET
.env
(CLIENT ID
=> DISCORD_KEY
& CLIENT SECRET
=> DISCORD_SECRET
)https://YourApp.Domain/login/discord/callback
.env
=> DISCORD_REDIRECT_URI
https://limg.app/api
For some page (with sensitive information) an API key is necessary, you must add:
Authorization:
{UserApiToken}
/stats/global
- Return the number of images, albums and users./user/{Username}
- Return the user's public information./user/{Username}
(with "Authorization") - Return the user's private information./user/{Username}/images/discover
- Returns all the user's "discover" images./user/{Username}/images/all
(with "Authorization") - Return all user images./user/{Username}/images/public
(with "Authorization") - Returns all the user's "public" images./user/{Username}/images/private
(with "Authorization") - Returns all the user's "private" images./images/discover
- Return all "discover" images./images/{pageName}
- Return the image of the specified image "pageName" (If public)./images/{pageName}
(with "Authorization") - Return the image of the specified image "pageName" (If private)./images/delete/{pageName}
(with "Authorization") - Delete the image, only if you own the image (does not work with anonymous user images)./upload
- ShareX Compatible API.This software uses Backpack for Laravel as a dependency. So when you use this in production, you'll need a Backpack license. You can get a free non-commercial license here, but if your project is for commercial purposes you need to pay 69 EUR for a license.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.