Skip to content

Commit

Permalink
yea
Browse files Browse the repository at this point in the history
  • Loading branch information
RubberDuckShobe committed Jun 18, 2023
1 parent 105b4ad commit a8ffb2a
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 18 deletions.
10 changes: 9 additions & 1 deletion @types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,12 @@ declare module "@fastify/jwt" {
}
}

export {};
type RadioEntry = {
wavebreakerId: number;
title: string;
artist: string;
externalUrl: string;
cgrFileUrl: string;
};

export {RadioEntry};
9 changes: 1 addition & 8 deletions routes/api/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@ import { FastifyInstance } from "fastify";
import { prisma } from "../../util/db";
import { Song } from "@prisma/client";
import fs from "fs";

type RadioEntry = {
wavebreakerId: number;
title: string;
artist: string;
externalUrl: string;
cgrFileUrl: string;
};
import { RadioEntry } from "../../@types/global";

type SongWithExternalUrl = Song & {
externalUrl: string;
Expand Down
10 changes: 1 addition & 9 deletions routes/as1/radio.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
import { FastifyInstance } from "fastify";
import fs from "fs";

type RadioEntry = {
wavebreakerId: number;
title: string;
artist: string;
externalUrl: string;
cgrFileUrl: string;
};

import { RadioEntry } from "../../@types/global";

export default async function routes(fastify: FastifyInstance) {
//idk why this uses POST but it does
Expand Down

0 comments on commit a8ffb2a

Please sign in to comment.