Categorygithub.com/CalebQ42/cdr-backend
modulepackage
0.1.1
Repository: https://github.com/calebq42/cdr-backend.git
Documentation: pkg.go.dev

# README

cdr-backend

Stupid backend for CDR.

APIs

Dice

Dice sharing

POST: /upload?key={api_key}

Upload a die.

Request Body:

{
    // Die data
}

Note: Only allows up to 1MB of data. If over 1MB returns 413. Further limits might be imposed in the future.

Response:

{
    "id": "die ID",
    "expiration": 0 // Unix time (Seconds) of expiration
}

GET: /die/{die id}?key={api_key}

Get an uploaded die.

Response:

{
    // die data minus uid
}

# Functions

No description provided by the author

# Structs

No description provided by the author
No description provided by the author