spa

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Serve(ctx *gin.Context)
}

Handler defines methods for the SPA (Vue) to interact with the server.

type SPA

type SPA struct {
	*deps.Deps
	// contains filtered or unexported fields
}

SPA defines the handler for all SPA routes.

func New

func New(d *deps.Deps) *SPA

New

Creates a new spa handler.

func (*SPA) Serve

func (s *SPA) Serve(ctx *gin.Context)

Serve

Serve all of the administrator & operator assets and serve the file extension based on the content type.

Jump to

Keyboard shortcuts

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