Help us shape the future of Go! Take the 2026 Go Developer Survey

routes

package
v1.321.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: AGPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Package routes provides the routing and HTTP handling for the application. It includes functions to bind application hooks, register routes, and configure additional modules such as JavaScript VM and database migration commands. It also includes a reverse proxy for routing requests to different services.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(app *pocketbase.PocketBase)

Setup initializes the application by binding hooks, registering routes, and configuring additional modules. It sets up various functionalities such as application hooks, route handlers, worker hooks, JavaScript VM integration, and database migration commands.

Parameters:

  • app: A pointer to the PocketBase application instance.

The function performs the following tasks:

  • Binds application-specific hooks for handling events and workflows.
  • Registers HTTP routes for handling specific API endpoints.
  • Configures worker hooks for background task processing.
  • Integrates a JavaScript VM for dynamic scripting capabilities.
  • Registers and configures database migration commands with support for JavaScript-based templates and automatic migration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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