apps

package
v0.0.0-...-4b98c26 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 35 Imported by: 0

Documentation

Overview

Package apps is the HTTP frontend of the application package. It exposes the HTTP api install, update or uninstall applications.

Index

Constants

View Source
const JSMimeType = "application/javascript"

JSMimeType is the content-type for javascript

Variables

This section is empty.

Functions

func AdminRoutes

func AdminRoutes(router *echo.Group)

AdminRoutes sets the routing for the admin interface to configure maintenance for the konnectors.

func BuildTemplates

func BuildTemplates()

BuildTemplates ensure that cozy-client-js and the bar can be injected in templates

func KonnectorRoutes

func KonnectorRoutes(router *echo.Group)

KonnectorRoutes sets the routing for the konnectors service

func Serve

func Serve(c echo.Context) error

Serve is an handler for serving files from the VFS for a client-side app

func ServeAppFile

func ServeAppFile(c echo.Context, i *instance.Instance, fs appfs.FileServer, webapp *app.WebappManifest) error

ServeAppFile will serve the requested file using the specified application manifest and appfs.FileServer context.

It can be used to serve file application in another context than the VFS, for instance for tests or development purposes where we want to serve an application that is not installed on the user's instance. However this procedure should not be used for standard applications, use the Serve method for that.

func WebappsRoutes

func WebappsRoutes(router *echo.Group)

WebappsRoutes sets the routing for the web apps service

Types

This section is empty.

Jump to

Keyboard shortcuts

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