Skip to content
Snippets Groups Projects
Verified Commit c2e9167f authored by Jakob Moser's avatar Jakob Moser
Browse files

Use key to get agenda items

parent d68bafd0
No related branches found
No related tags found
No related merge requests found
Pipeline #6478 passed
import { Base } from "./Base.mjs"
import { Agenda } from "../pieces/Agenda.mjs"
import { getKey } from "../../account.mjs"
const items = {
all: null,
message: "Wird geladen...",
async fetch() {
try {
this.all = await m.request("/api/v0/agendas/-/items")
this.all = await m.request({
method: "GET",
url: "/api/v0/agendas/-/items",
headers: getKey()
? {
Authorization: `Bearer ${getKey().secret}`,
}
: {},
})
} catch (e) {
if (e.code === 401) {
this.message =
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment