feat: rollback new.humas
This commit is contained in:
parent
8b1c2f9bac
commit
67b662dfc7
|
|
@ -3,7 +3,7 @@ import { getListArticle } from "@/services/article";
|
|||
import { NextResponse } from "next/server";
|
||||
|
||||
export async function GET() {
|
||||
const baseUrl = "https://humas.polri.go.id";
|
||||
const baseUrl = "https://new.humas.polri.go.id";
|
||||
|
||||
const response = await getListArticle({ page: 1, limit: "100", search: "" });
|
||||
|
||||
|
|
|
|||
|
|
@ -235,7 +235,7 @@ export default function Login() {
|
|||
const resActivity = await saveActivity(
|
||||
{
|
||||
activityTypeId: 1,
|
||||
url: "https://humas.polri.go.id/auth",
|
||||
url: "https://new.humas.polri.go.id/auth",
|
||||
userId: profile?.data?.data?.id,
|
||||
},
|
||||
accessData?.id_token
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ export default function Comment(props: { id: string | null }) {
|
|||
}
|
||||
const req: any = {
|
||||
activityTypeId: 5,
|
||||
url: "https://humas.polri.go.id/" + pathname,
|
||||
url: "https://new.humas.polri.go.id/" + pathname,
|
||||
articleId: Number(id),
|
||||
};
|
||||
|
||||
|
|
@ -172,7 +172,7 @@ export default function Comment(props: { id: string | null }) {
|
|||
}
|
||||
const req: any = {
|
||||
activityTypeId: 5,
|
||||
url: "https://humas.polri.go.id/" + pathname,
|
||||
url: "https://new.humas.polri.go.id/" + pathname,
|
||||
articleId: Number(id),
|
||||
userId: Number(userId),
|
||||
};
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ export default function EMagazineDetail() {
|
|||
const doDownload = async (fileName: string, title: string): Promise<void> => {
|
||||
try {
|
||||
const response = await fetch(
|
||||
`https://humas.polri.go.id/magazine-files/viewer/${fileName}`
|
||||
`https://new.humas.polri.go.id/magazine-files/viewer/${fileName}`
|
||||
);
|
||||
|
||||
if (!response.ok) {
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ export default function NewsDetailPage(props: { datas: any }) {
|
|||
const sendActivity = async () => {
|
||||
let req: any = {
|
||||
activityTypeId: 2,
|
||||
url: "https://humas.polri.go.id" + pathname,
|
||||
url: "https://new.humas.polri.go.id" + pathname,
|
||||
articleId: Number(id?.split("-")[0]),
|
||||
};
|
||||
if (uid) {
|
||||
|
|
|
|||
|
|
@ -51,11 +51,11 @@ export default function DetailNews(props: { data: any; listArticle: any }) {
|
|||
|
||||
const handleShare = async (platform: string) => {
|
||||
let shareLink = "";
|
||||
const urls = "https://humas.polri.go.id/" + pathname;
|
||||
const urls = "https://new.humas.polri.go.id/" + pathname;
|
||||
|
||||
let req: any = {
|
||||
activityTypeId: 3,
|
||||
url: "https://humas.polri.go.id/" + pathname,
|
||||
url: "https://new.humas.polri.go.id/" + pathname,
|
||||
articleId: Number(id?.split("-")[0]),
|
||||
};
|
||||
if (uid) {
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import axios from "axios";
|
||||
|
||||
// const baseURL = "http://10.200.202.141:8802";
|
||||
const baseURL = "https://humas.polri.go.id/api";
|
||||
const baseURL = "https://new.humas.polri.go.id/api";
|
||||
|
||||
const axiosInterceptorInstance = axios.create({
|
||||
baseURL,
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ import { postSignIn } from "../master-user";
|
|||
import Cookies from "js-cookie";
|
||||
|
||||
// const baseURL = "http://10.200.202.141:8802";
|
||||
const baseURL = "https://humas.polri.go.id/api";
|
||||
const baseURL = "https://new.humas.polri.go.id/api";
|
||||
|
||||
const refreshToken = Cookies.get("refresh_token");
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import axios from "axios";
|
||||
|
||||
const baseURL = "https://humas.polri.go.id/api";
|
||||
const baseURL = "https://new.humas.polri.go.id/api";
|
||||
// const baseURL = "http://10.200.202.141:8802";
|
||||
|
||||
const axiosBaseInstance = axios.create({
|
||||
|
|
|
|||
Loading…
Reference in New Issue