File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ export async function POST ( request : Request ) {
2+ const { category, slug } = await request . json ( ) ;
3+
4+ await fetch (
5+ `https://blog-server.un-defined.dev/posts/${ category } /${ slug } /view` ,
6+ {
7+ method : "POST" ,
8+ } ,
9+ ) ;
10+
11+ return Response . json ( { message : "success" } ) ;
12+ }
Original file line number Diff line number Diff line change 11import "./globals.css" ;
22
3+ import { GoogleAnalytics } from "@next/third-parties/google" ;
34import type { Metadata } from "next" ;
45import { Geist , Geist_Mono } from "next/font/google" ;
56
@@ -74,6 +75,7 @@ export default async function RootLayout({
7475 < MobileBottomTab />
7576 </ div >
7677 </ ThemeProvider >
78+ < GoogleAnalytics gaId = { "G-HT07LQYBG3" } />
7779 </ body >
7880 </ html >
7981 ) ;
Original file line number Diff line number Diff line change 1313 "docker:run" : " docker run -p 3000:3000 undefined-dev"
1414 },
1515 "dependencies" : {
16+ "@next/third-parties" : " ^16.1.6" ,
1617 "class-variance-authority" : " ^0.7.1" ,
1718 "clsx" : " ^2.1.1" ,
1819 "dayjs" : " ^1.11.19" ,
You can’t perform that action at this time.
0 commit comments