api

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package api defines an interface for controllers to register routes with different access levels.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IController

type IController interface {
	// RegisterPublic sets up public routes.
	RegisterPublic(router *mux.Router)

	// RegisterProtected sets up routes that require authentication.
	RegisterProtected(router *mux.Router)
}

IController outlines methods for route registration: - Public: No authentication required. - Protected: Requires authentication.

Directories

Path Synopsis
Package baseapi provides a base handler for HTTP requests, including functionalities for request validation, error handling, and response management.
Package baseapi provides a base handler for HTTP requests, including functionalities for request validation, error handling, and response management.
Package expense provides HTTP handlers for managing user expenses, including adding, retrieving, and updating expense records.
Package expense provides HTTP handlers for managing user expenses, including adding, retrieving, and updating expense records.
dto
Package user provides HTTP handlers for user-related actions such as registration and login.
Package user provides HTTP handlers for user-related actions such as registration and login.
dto

Jump to

Keyboard shortcuts

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