refactor: turn ap.js into a directory

The file has grown and I want to break it apart into smaller files.
Therefore I rename the file in the first step and adjust the import
paths.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
This commit is contained in:
André Jaenisch 2024-06-14 18:25:28 +02:00
parent 908064639a
commit eca61c975e
No known key found for this signature in database
GPG key ID: 5A668E771F1ED854
3 changed files with 3 additions and 3 deletions

View file

@ -15,7 +15,7 @@ import { Agent } from 'node:https';
import axios, { AxiosHeaders } from 'axios';
import * as cheerio from 'cheerio';
import pkg from '../../../package.json';
import pkg from '../../../../package.json';
const loginResponse = {
id: '87bcb6de-bb70-11ee-b719-6756da82e80f',

View file

@ -12,7 +12,7 @@
import { fail, redirect } from '@sveltejs/kit';
import { requests } from '$lib/server/ap.js';
import { requests } from '$lib/server/ap/index.js';
/** @type {import('./$types').Actions} */
export const actions = {

View file

@ -10,7 +10,7 @@
* You should have received a copy of the GNU Affero General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import { requests } from '$lib/server/ap.js';
import { requests } from '$lib/server/ap/index.js';
/** @type {import('./$types').PageServerLoad} */
export async function load({ params }) {