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:
parent
908064639a
commit
eca61c975e
3 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ import { Agent } from 'node:https';
|
||||||
import axios, { AxiosHeaders } from 'axios';
|
import axios, { AxiosHeaders } from 'axios';
|
||||||
import * as cheerio from 'cheerio';
|
import * as cheerio from 'cheerio';
|
||||||
|
|
||||||
import pkg from '../../../package.json';
|
import pkg from '../../../../package.json';
|
||||||
|
|
||||||
const loginResponse = {
|
const loginResponse = {
|
||||||
id: '87bcb6de-bb70-11ee-b719-6756da82e80f',
|
id: '87bcb6de-bb70-11ee-b719-6756da82e80f',
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
import { fail, redirect } from '@sveltejs/kit';
|
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} */
|
/** @type {import('./$types').Actions} */
|
||||||
export const actions = {
|
export const actions = {
|
||||||
|
|
|
@ -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/>.
|
* 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} */
|
/** @type {import('./$types').PageServerLoad} */
|
||||||
export async function load({ params }) {
|
export async function load({ params }) {
|
||||||
|
|
Loading…
Reference in a new issue