]> PHS Git Server - phs-admin.git/commitdiff
Adding authentication, media, and messaging.
authorcharleswrayjr <charleswrayjr@gmail.com>
Sat, 13 Sep 2025 08:04:59 +0000 (03:04 -0500)
committercharleswrayjr <charleswrayjr@gmail.com>
Sat, 13 Sep 2025 08:04:59 +0000 (03:04 -0500)
src/app/services/posts.js

index d8713c7ee443fe8033a29efbcda6d80135907613..850959e60ced8b2253ffea0c31b914e4aeb85cdd 100644 (file)
@@ -4,12 +4,12 @@
 
 import axios from 'axios';
 
-const base_url = require('../../globals');
+import { base_url } from '../../globals';
 
 
 export const PostService = {
   async getPosts() {
-    const url = new URL(`${base_url}post`);
+    let url = new URL( `${ base_url }post` );
     console.log(url.toString());
     return await axios.get(url.toString());
   },