routes

package
v0.0.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2021 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Database *gorm.DB

Database stores the global database for the API

View Source
var Suffixes []string

Functions

func AdminUserGroupAdd

func AdminUserGroupAdd(c *fiber.Ctx) error

AdminUserGroupAdd handles a PUT request to add a group to a user

func AdminUserGroupRemove

func AdminUserGroupRemove(c *fiber.Ctx) error

AdminUserGroupRemove handles a DELETE request to remove a group from a user

func AdminUserImpersonate

func AdminUserImpersonate(c *fiber.Ctx) error

AdminUserImpersonate handles a POST request to log in as another user

func AdminUserList

func AdminUserList(c *fiber.Ctx) error

AdminUserList handles a GET request to list all users

func Document

func Document() string

Document generates a markdown table of API routes

func RecordAdd

func RecordAdd(c *fiber.Ctx) error

RecordAdd handles a POST request to add a DNS record

func RecordDelete

func RecordDelete(c *fiber.Ctx) error

RecordDelete handles a DELETE request to delete a DNS record

func RecordList

func RecordList(c *fiber.Ctx) error

RecordList handles a GET request to list records for a zone

func RecordUpdate

func RecordUpdate(c *fiber.Ctx) error

RecordUpdate handles a PUT request to update a DNS record

func Register

func Register(app *fiber.App, meta map[string]interface{})

Register registers route handlers

func UserChangePassword

func UserChangePassword(c *fiber.Ctx) error

UserChangePassword handles a POST request to change a user's password

func UserDelete

func UserDelete(c *fiber.Ctx) error

UserDelete handles a DELETE request to delete a user

func UserInfo

func UserInfo(c *fiber.Ctx) error

UserInfo handles a GET request to get a user's info

func UserLogin

func UserLogin(c *fiber.Ctx) error

UserLogin handles a login POST request

func UserLogout

func UserLogout(c *fiber.Ctx) error

UserLogout handles a GET request to log the user out

func UserSignup

func UserSignup(c *fiber.Ctx) error

UserSignup handles a signup POST request

func ZoneAdd

func ZoneAdd(c *fiber.Ctx) error

ZoneAdd handles a POST request to add a zone

func ZoneDelete

func ZoneDelete(c *fiber.Ctx) error

ZoneDelete handles a DELETE request to delete a zone

func ZoneList

func ZoneList(c *fiber.Ctx) error

ZoneList handles a GET request to list zones for a user

func ZoneUserAdd

func ZoneUserAdd(c *fiber.Ctx) error

ZoneUserAdd handles a PUT request to add a user to a zone

func ZoneUserDelete

func ZoneUserDelete(c *fiber.Ctx) error

ZoneUserDelete handles a DELETE request to remove a user from a zone

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL