mirror of https://github.com/realaravinth/gitpad
DESCRIPTION Each comment is uniquely identified by database assigned, serially incremented ID. Access controlled REST endpoint is added to delete comment by ID. ERRORS RETURNED - Gist doesn't exist: 404 GistNotFound - Gist is private and requesting user is not owner or is not visible to user: 404 GistNotFound - Gist exists and is visible to requesting user but comment doesn't exist: 404 CommentNotFound - Gist exists and is visible to requesting user is not comment owner : 401 UnauthorizedOperation |
||
---|---|---|
.github | ||
config | ||
database | ||
docs | ||
src | ||
.env-sample | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE.md | ||
Makefile | ||
README.md | ||
build.rs | ||
sqlx-data.json |
README.md
Features
- Upload code snippets(✓ REST API)
- Syntax Highlighting
- Comments
- Versioning through Git
- Fork gists
- Gist privacy: public, unlisted, private
- Git clone via HTTP and SSH
- Activity Pub implementation for publishing native gists and commenting
- Gitea OAuth integration
Why?
Gists are nice, while there are wonderful forges like Gitea, there isn't a libre pastebin implementation that can rival GitHub Gists.
Usage
- All configuration is done through
./config/default.toml(can be moved to
/etc/gists/config.toml
).