Skip to content

Commit 9f8b74c

Browse files
committed
fix: readme
1 parent e6e658b commit 9f8b74c

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ on:
1717
pull_request:
1818
# The branches below must be a subset of the branches above
1919
branches: [ master ]
20-
schedule:
21-
- cron: '27 20 * * 4'
2220

2321
jobs:
2422
analyze:

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ name: Node.js tests
22

33
on:
44
push:
5-
branches: [ $default-branch ]
5+
branches: [ master ]
66
pull_request:
7-
branches: [ $default-branch ]
7+
branches: [ master ]
88

99
jobs:
10-
build:
10+
test:
1111
runs-on: ubuntu-latest
1212

1313
strategy:

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
1-
# [WIP] Apitator
1+
# Vue-Apitator
2+
3+
![Unit test workflow](https://github.com/lefuturiste/vue-apitator/actions/workflows/tests/badge.svg)
24

35
A simple way to query your REST or your GraphQL API in your Vue.js app
46

57
## Installation
68

79
`npm install --save vue-apitator`
810

11+
or
12+
13+
`yarn add vue-apitator`
14+
915
## Usage
1016

1117
in your main.js:

src/client.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,8 @@ export default class client {
5353
this.toggleLoading()
5454
if (!options.headers)
5555
options.headers = {}
56-
57-
if (options.withAuth) {
56+
if (options.withAuth)
5857
options.headers.Authorization = this.authorizationHeader
59-
}
6058

6159
let requestConfig: AxiosRequestConfig = {
6260
method: method,

0 commit comments

Comments
 (0)