added widget for xteve (#731)

* added xteve widget

* eslint fixes

* xteve code cleanup

Co-authored-by: Marcus Kimpenhaus <k@AirM2.kimpenhaus.net>
Co-authored-by: Michael Shamoon <4887959+shamoon@users.noreply.github.com>
This commit is contained in:
Marcus Kimpenhaus 2022-12-26 05:51:51 +01:00 committed by GitHub
parent 3a27486c34
commit 43a11eadfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 119 additions and 0 deletions

View file

@ -0,0 +1,14 @@
import xteveProxyHandler from "./proxy";
const widget = {
api: "{url}/{endpoint}",
proxyHandler: xteveProxyHandler,
mappings: {
"api": {
endpoint: "api/",
},
},
};
export default widget;