@mxtommy/kip 3.10.0-beta.16 → 3.10.0-beta.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/kip-plugin/src/index.ts +2 -3
- package/package.json +1 -1
- package/plugin/index.js +2 -2
package/kip-plugin/src/index.ts
CHANGED
|
@@ -31,15 +31,14 @@ export default (server: ServerAPI): Plugin => {
|
|
|
31
31
|
},
|
|
32
32
|
registerWithRouter(router) {
|
|
33
33
|
server.debug(`Registering plugin routes: ${API_PATHS.DISPLAYS_PATH}`);
|
|
34
|
+
server.setPluginStatus(`Providing remote display control`);
|
|
34
35
|
|
|
35
|
-
router.get('/
|
|
36
|
+
router.get('/demopluginGet', (req, res) => res.json({message: 'test ok'}));
|
|
36
37
|
|
|
37
38
|
router.put(`${API_PATHS.DISPLAYS_PATH}`, async (req: Request, res: Response) => {
|
|
38
39
|
server.debug(`** PUT path ${API_PATHS.DISPLAYS_PATH}. Request Body: ${JSON.stringify(req.body)}, Method: ${req.method}, Path: ${req.path}`);
|
|
39
40
|
try {
|
|
40
41
|
|
|
41
|
-
server.setPluginStatus(`Started. Providing remote display control`);
|
|
42
|
-
|
|
43
42
|
return res.status(200).json({
|
|
44
43
|
state: 'SUCCESS',
|
|
45
44
|
statusCode: 200
|
package/package.json
CHANGED
package/plugin/index.js
CHANGED
|
@@ -28,11 +28,11 @@ exports.default = (server) => {
|
|
|
28
28
|
},
|
|
29
29
|
registerWithRouter(router) {
|
|
30
30
|
server.debug(`Registering plugin routes: ${API_PATHS.DISPLAYS_PATH}`);
|
|
31
|
-
|
|
31
|
+
server.setPluginStatus(`Providing remote display control`);
|
|
32
|
+
router.get('/demopluginGet', (req, res) => res.json({ message: 'test ok' }));
|
|
32
33
|
router.put(`${API_PATHS.DISPLAYS_PATH}`, async (req, res) => {
|
|
33
34
|
server.debug(`** PUT path ${API_PATHS.DISPLAYS_PATH}. Request Body: ${JSON.stringify(req.body)}, Method: ${req.method}, Path: ${req.path}`);
|
|
34
35
|
try {
|
|
35
|
-
server.setPluginStatus(`Started. Providing remote display control`);
|
|
36
36
|
return res.status(200).json({
|
|
37
37
|
state: 'SUCCESS',
|
|
38
38
|
statusCode: 200
|