Documentation ¶
Index ¶
- func BulkDeleteUrls(c *fiber.Ctx) error
- func CreateUrl(c *fiber.Ctx) error
- func DeleteUrl(c *fiber.Ctx) error
- func GetStats(c *fiber.Ctx) error
- func GetUrls(c *fiber.Ctx) error
- func Login(c *fiber.Ctx) error
- func RedirectToUrl(c *fiber.Ctx) error
- func Register(c *fiber.Ctx) error
- func UpdateUrl(c *fiber.Ctx) error
- type UserCredentials
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BulkDeleteUrls ¶
func BulkDeleteUrls(c *fiber.Ctx) error
/ Example request: {"urls_ids": ["url_id1", "url_id2"]}
func CreateUrl ¶
func CreateUrl(c *fiber.Ctx) error
/ Example request: {"name": "example", "long": "https://example.com", "alias": "example", "expires_at": "2022-01-01T00:00:00Z"} / Example response: {"status": "success", "message": "Url created", "data": {"ID":1,"CreatedAt":"2021-09-26T14:00:00Z","UpdatedAt":"2021-09-26T14:00:00Z","
func RedirectToUrl ¶
func RedirectToUrl(c *fiber.Ctx) error
func UpdateUrl ¶
func UpdateUrl(c *fiber.Ctx) error
/ Example request: {"active": true, "alias": "example", "name": "example", "long": "https://example.com", "expires_at": "2022-01-01T00:00:00Z"}
Types ¶
type UserCredentials ¶
Click to show internal directories.
Click to hide internal directories.