Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
35f202f5
Commit
35f202f5
authored
Jul 02, 2023
by
Jeffrey Morgan
Browse files
use app router
parent
0efa1f9f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
web/app/api/models/route.js
web/app/api/models/route.js
+6
-0
web/pages/api/models.js
web/pages/api/models.js
+0
-5
No files found.
web/app/api/models/route.js
0 → 100644
View file @
35f202f5
import
models
from
'
../../../../models.json
'
import
{
NextResponse
}
from
'
next/server
'
export
async
function
GET
(
re
)
{
return
NextResponse
.
json
(
models
)
}
web/pages/api/models.js
deleted
100644 → 0
View file @
0efa1f9f
import
models
from
'
../../../models.json
'
export
default
async
function
handler
(
req
,
res
)
{
return
res
.
status
(
200
).
json
(
models
)
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment