Documentation ¶
Overview ¶
Package apps is the HTTP frontend of the application package. It exposes the HTTP api install, update or uninstall applications.
Index ¶
Constants ¶
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.