request all links from shaarli
This commit is contained in:
parent
115c71b873
commit
83e01ebb56
3
.web-extension-id
Normal file
3
.web-extension-id
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# This file was created by https://github.com/mozilla/web-ext
|
||||||
|
# Your auto-generated extension ID for addons.mozilla.org is:
|
||||||
|
{898e31e7-f847-4444-ab44-06c731027963}
|
||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Web Extension for Shaarli modified",
|
"name": "Web Extension for Shaarli modified",
|
||||||
"description": "Share your link to your Shaarli, test version",
|
"description": "Share your link to your Shaarli, test version",
|
||||||
"version": "2.0.1",
|
"version": "2.0.2",
|
||||||
"homepage_url": "https://git.hmthsn.com/mantao/shaarli-web-extension",
|
"homepage_url": "https://git.hmthsn.com/mantao/shaarli-web-extension",
|
||||||
"manifest_version": 2,
|
"manifest_version": 2,
|
||||||
"icons": {
|
"icons": {
|
||||||
|
|||||||
@ -22,7 +22,7 @@ async function getLinks(api_token){
|
|||||||
let token = generateToken(api_token)
|
let token = generateToken(api_token)
|
||||||
var result = await $.ajax(
|
var result = await $.ajax(
|
||||||
{
|
{
|
||||||
url: "https://sl.hmthsn.com/api/v1/links",
|
url: "https://sl.hmthsn.com/api/v1/links?limit=all",
|
||||||
//url: "http://127.0.0.1:8081/",
|
//url: "http://127.0.0.1:8081/",
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
headers:{"Authorization": 'Bearer ' + token}
|
headers:{"Authorization": 'Bearer ' + token}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user