Skip to content

getAlby/sell-lsat-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

INSATGRAM

Dependencies

  • Postgres database

Development

Make sure you have postgres running and created a db called lsatfiles, see the .envfile

go build
./lsatfiles

API

Endpoint Request fields JSON Response Fields Description
GET https://insatgram.getalby.com/api/index page, sort_by(created_at, price, nr_of_downloads, sats_earned) (array) "CreatedAt","Currency","LNAddress","Name","NrOfDownloads","Price","SatsEarned","TimeAgo","URL" Get all uploaded files
GET https://insatgram.getalby.com/api/accounts page, sort_by(count,earned) (array) Get all accounts
GET https://insatgram.getalby.com/api/accounts/{account} Get an account
GET https://insatgram.getalby.com/api/accounts/search ln_address, sort_by() (array) Search accounts
GET https://insatgram.getalby.com/assets/{filename} file content Retrieve a file. Blurred without LSAT header, real file with LSAT
POST form https://insatgram.getalby.com/api/upload file, ln_address, price msg, url Upload a file

Frontend

Has been migrated to https://github.com/kiwiidb/insatgram