agomusa / copero

πŸ“‹ A free service to store plain text, exposes an API and a Frontend

Home Page:https://copero.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

copero

A free service to store plain text.

API

GET /api/all

https://copero.vercel.app/api/all

Returns a list of:

interface Snippet {
  snippet: string;
  slug: string;
}

Example:

[
  {
    "snippet": "Hello, world!",
    "slug": "VPLkxD"
  }
]

GET /api/all?only={slug/snippet}

https://copero.vercel.app/api/all?only=slug

Returns a list of strings, example:

["VPLkxD", "fdOqXz", "GIobVf", "YlWAeH", "ggoXpB"]

POST /api/post

Example using curl:

curl -d '{"snippet":"hello world"}' -H "Content-Type: application/json" -X POST https://copero.vercel.app/api/post

If everything goes OK, it will return:

{
  "snippet": "hello world",
  "slug": "akgAWr"
}

TODO

  • Learn how to do a decent frontend

  • Agressively refactor the frontend

Licence

This project is licensed under the MIT Licence.

About

πŸ“‹ A free service to store plain text, exposes an API and a Frontend

https://copero.vercel.app

License:MIT License


Languages

Language:JavaScript 61.2%Language:TypeScript 38.8%