added missing backslashes to api key request definition
This commit is contained in:
parent
1b317ee4c9
commit
6d6ab9a874
1 changed files with 2 additions and 2 deletions
|
|
@ -468,7 +468,7 @@ export async function updateUser(user_id: string, user: Users) {
|
||||||
|
|
||||||
export async function getApiKey() {
|
export async function getApiKey() {
|
||||||
try {
|
try {
|
||||||
const res = await api.get(`${BASE_URL_API}api_key`);
|
const res = await api.get(`${BASE_URL_API}api_key/`);
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
return res.data;
|
return res.data;
|
||||||
}
|
}
|
||||||
|
|
@ -480,7 +480,7 @@ export async function getApiKey() {
|
||||||
|
|
||||||
export async function createApiKey(name: string) {
|
export async function createApiKey(name: string) {
|
||||||
try {
|
try {
|
||||||
const res = await api.post(`${BASE_URL_API}api_key`, { name });
|
const res = await api.post(`${BASE_URL_API}api_key/`, { name });
|
||||||
if (res.status === 200) {
|
if (res.status === 200) {
|
||||||
return res.data;
|
return res.data;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue