controllers

package
v0.0.0-...-9a8ef32 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCustomer

func CreateCustomer(c *fiber.Ctx) error

CreateCustomer handler for creating a new customer

func CreateInventory

func CreateInventory(c *fiber.Ctx) error

CreateInventory handler for creating a new inventory

func CreateItem

func CreateItem(c *fiber.Ctx) error

CreateItem handler for creating a new item

func CreateUser

func CreateUser(c *fiber.Ctx) error

CreateUser creates a new user

func DefaultRoute

func DefaultRoute(c *fiber.Ctx) error

DefaultRoute handler for the root endpoint

func DeleteUser

func DeleteUser(c *fiber.Ctx) error

DeleteUser deletes a user by ID

func GetCustomers

func GetCustomers(c *fiber.Ctx) error

func GetCustomersItems

func GetCustomersItems(c *fiber.Ctx) error

GetCustomersItems handler to fetch all inventories and their items for customers

func GetInventories

func GetInventories(c *fiber.Ctx) error

GetInventories handler to fetch all inventories

func GetItems

func GetItems(c *fiber.Ctx) error

GetItems handler to fetch all items

func GetUser

func GetUser(c *fiber.Ctx) error

GetUser retrieves a user by ID

func GetUsers

func GetUsers(c *fiber.Ctx) error

GetUsers retrieves all users

func Login

func Login(c *fiber.Ctx) error

func NotFoundRoute

func NotFoundRoute(c *fiber.Ctx) error

NotFoundRoute handler for undefined routes

func SetupRoutes

func SetupRoutes(app *fiber.App)

SetupRoutes defines all the routes for the application

func UpdateUser

func UpdateUser(c *fiber.Ctx) error

UpdateUser updates a user by ID

Types

This section is empty.

Jump to

Keyboard shortcuts

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