chore: imports refactor

This commit is contained in:
swve 2023-01-24 23:01:53 +01:00
parent a64d8eda3a
commit db4f32aaf0
11 changed files with 28 additions and 30 deletions

View file

@ -1,4 +1,4 @@
import { getAPIUrl } from "../config";
import { getAPIUrl } from "@services/config";
interface LoginAndGetTokenResponse {
access_token: "string";

View file

@ -1,5 +1,5 @@
import { initialData } from "../../components/Drags/data";
import { getAPIUrl } from "../config";
import { getAPIUrl } from "@services/config";
export async function getCourseChaptersMetadata(course_id: any) {
const HeadersConfig = new Headers({ "Content-Type": "application/json" });

View file

@ -1,4 +1,4 @@
import { getAPIUrl } from "../config";
import { getAPIUrl } from "@services/config";
/*
This file includes only POST, PUT, DELETE requests

View file

@ -1,4 +1,4 @@
import { getAPIUrl } from "../config";
import { getAPIUrl } from "@services/config";
export async function createLecture(data: any, chapter_id: any) {
data.content = {};

View file

@ -1,4 +1,4 @@
import { getAPIUrl } from "../config";
import { getAPIUrl } from "@services/config";
export async function uploadNewImageFile(file: any, lecture_id: string) {
const HeadersConfig = new Headers();

View file

@ -1,4 +1,4 @@
import { getAPIUrl } from "../config";
import { getAPIUrl } from "@services/config";
export async function uploadNewVideoFile(file: any, lecture_id: string) {
const HeadersConfig = new Headers();