Panggil endpoint:
POST /api/shorten
Content-Type: application/json
{
"url": "https://contoh.com",
"alias": "VIP",
"expires_at": "2025-12-31"
}
Respon:
{
"short_url": "https://domainmu/abc",
"code": "abc",
"long_url": "https://contoh.com",
"expires_at": "2025-12-31 00:00:00"
}