Migrate from github to gitea + some improvements

This commit is contained in:
2022-09-18 00:39:03 +02:00
parent 594b532fe7
commit 7595d42f9a
15 changed files with 44 additions and 74 deletions

View File

@@ -1,7 +1,7 @@
import { Injectable } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Observable } from 'rxjs';
const AUTH_API = 'https://gruppe1.testsites.info/api/user';
const AUTH_API = '/api/user';
const httpOptions = {
headers: new HttpHeaders({ 'Content-Type': 'application/json' }),

View File

@@ -3,7 +3,7 @@ import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { TokenStorageService } from './token.service';
const API_URL = 'https://gruppe1.testsites.info/api/';
const API_URL = '/api/';
@Injectable({
providedIn: 'root',

View File

@@ -2,7 +2,7 @@ import { Injectable, OnInit } from '@angular/core';
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { delay, Observable } from 'rxjs';
import { TokenStorageService } from './token.service';
const API_URL = 'https://gruppe1.testsites.info/api/';
const API_URL = '/api/';
@Injectable({
providedIn: 'root',
})

View File

@@ -3,7 +3,7 @@ import { Injectable } from '@angular/core';
import { Observable } from 'rxjs';
import { TokenStorageService } from './token.service';
const API_URL = 'https://gruppe1.testsites.info/api/';
const API_URL = '/api/';
@Injectable({
providedIn: 'root',
@@ -77,7 +77,7 @@ export class ProfileService {
*/
public addCronString(cron: string): Observable<any> {
return this.http.put(
'https://gruppe1.testsites.info/api/user' + '/setCron',
'/api/user' + '/setCron',
{
cron,
},