chore: wiki: automatic list of all api endpoints
This commit is contained in:
1 parent
7664d058df
commit
3fc0697db8
11 files changed
+205
-39
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { NextResponse } from "next/server";
|
||||
import { getSongbooks, addSongbook } from "@/lib/db/managing";
|
||||
|
||||
|
||||
// @wikiDescription: Liste aller Liederbücher abrufen
|
||||
export async function GET() {
|
||||
try {
|
||||
const songbooks = await getSongbooks();
|
||||
@@ -10,6 +10,8 @@ export async function GET() {
|
||||
return NextResponse.json({ success: false, message: error}, { status: 500})
|
||||
}
|
||||
}
|
||||
|
||||
// @wikiDescription: Neues Liederbuch erstellen
|
||||
export async function POST(request: Request) {
|
||||
try {
|
||||
const { name, language } = await request.json();
|
||||
|
||||
Reference in new issue
Block a user