change new.humas to humas

This commit is contained in:
Rama Priyanto 2025-09-01 10:36:09 +07:00
parent 9acdba3400
commit 0809fd0ca8
8 changed files with 10 additions and 10 deletions

View File

@ -3,7 +3,7 @@ import { getListArticle } from "@/services/article";
import { NextResponse } from "next/server";
export async function GET() {
const baseUrl = "https://new.humas.polri.go.id";
const baseUrl = "https://humas.polri.go.id";
const response = await getListArticle({ page: 1, limit: "100", search: "" });

View File

@ -235,7 +235,7 @@ export default function Login() {
const resActivity = await saveActivity(
{
activityTypeId: 1,
url: "https://new.humas.polri.go.id/auth",
url: "https://humas.polri.go.id/auth",
userId: profile?.data?.data?.id,
},
accessData?.id_token

View File

@ -112,7 +112,7 @@ export default function Comment(props: { id: string | null }) {
}
const req: any = {
activityTypeId: 5,
url: "https://new.humas.polri.go.id/" + pathname,
url: "https://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://new.humas.polri.go.id/" + pathname,
url: "https://humas.polri.go.id/" + pathname,
articleId: Number(id),
userId: Number(userId),
};

View File

@ -36,7 +36,7 @@ export default function EMagazineDetail() {
const doDownload = async (fileName: string, title: string): Promise<void> => {
try {
const response = await fetch(
`https://new.humas.polri.go.id/magazine-files/viewer/${fileName}`
`https://humas.polri.go.id/magazine-files/viewer/${fileName}`
);
if (!response.ok) {

View File

@ -39,7 +39,7 @@ export default function NewsDetailPage(props: { datas: any }) {
const sendActivity = async () => {
let req: any = {
activityTypeId: 2,
url: "https://new.humas.polri.go.id" + pathname,
url: "https://humas.polri.go.id" + pathname,
articleId: Number(id?.split("-")[0]),
};
if (uid) {

View File

@ -51,11 +51,11 @@ export default function DetailNews(props: { data: any; listArticle: any }) {
const handleShare = async (platform: string) => {
let shareLink = "";
const urls = "https://new.humas.polri.go.id/" + pathname;
const urls = "https://humas.polri.go.id/" + pathname;
let req: any = {
activityTypeId: 3,
url: "https://new.humas.polri.go.id/" + pathname,
url: "https://humas.polri.go.id/" + pathname,
articleId: Number(id?.split("-")[0]),
};
if (uid) {

View File

@ -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://new.humas.polri.go.id/api";
const baseURL = "https://humas.polri.go.id/api";
const refreshToken = Cookies.get("refresh_token");

View File

@ -1,6 +1,6 @@
import axios from "axios";
const baseURL = "https://new.humas.polri.go.id/api";
const baseURL = "https://humas.polri.go.id/api";
// const baseURL = "http://10.200.202.141:8802";
const axiosBaseInstance = axios.create({