Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
project_ss23_gameunity
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Yusuf Akgül
project_ss23_gameunity
Merge requests
!1
Feature games list
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Feature games list
FeatureGamesList
into
main
Overview
0
Commits
3
Pipelines
1
Changes
12
Merged
Yusuf Akgül
requested to merge
FeatureGamesList
into
main
1 year ago
Overview
0
Commits
3
Pipelines
1
Changes
12
Expand
0
0
Merge request reports
Viewing commit
f93cb9d2
Prev
Next
Show latest version
12 files
+
279
−
51
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
12
Search (e.g. *.vue) (Ctrl+P)
f93cb9d2
infinity scroll implemented + started using mui, + some cleanup and code form changes
· f93cb9d2
Yusuf Akgül
authored
1 year ago
app/api/games/route.ts
+
4
−
3
Options
import
{
getGames
}
from
"
@/lib/igdb
"
;
import
{
getGames
}
from
"
@/lib/igdb
"
;
import
{
NextRequest
,
NextResponse
}
from
"
next/server
"
;
import
{
NextRequest
,
NextResponse
}
from
"
next/server
"
;
export
async
function
GET
()
{
export
async
function
GET
(
req
:
NextRequest
)
{
const
games
=
await
getGames
();
const
p
=
req
.
nextUrl
.
searchParams
;
const
games
=
await
getGames
(
p
.
get
(
'
page
'
)
?
parseInt
(
p
.
get
(
'
page
'
)
as
string
)
:
undefined
);
return
NextResponse
.
json
(
games
);
return
NextResponse
.
json
(
games
);
}
}
\ No newline at end of file
Loading