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 CozyBarJS = `document.addEventListener('DOMContentLoaded', () => {
cozy.bar.init({
appName: '%s',
iconPath: '%s',
lang: '%s'
})
})`
CozyBarJS is the JavaScript used to initialize a cozy-bar
View Source
const JSMimeType = "application/javascript"
JSMimeType is the content-type for javascript
Variables ¶
This section is empty.
Functions ¶
func InitCozyBarJS ¶
InitCozyBarJS returns a JavaScript that initializes the cozy-bar with options from the manifest of the application
func InstallOrUpdateHandler ¶
InstallOrUpdateHandler handles all POST /:slug request and tries to install or update the application with the given Source.
func ListHandler ¶
ListHandler handles all GET / requests which can be used to list installed applications.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.