Code & Deploy
siGit Code
Git Hosting
Toggle menu
siGit Code
Git Hosting
Sign in
Sign in
@devries-cameron20
/
t3code-1
Fork
0
The best way to control Claude Code, Codex and more from any computer or phone
t3code-1
/
.repos
/
alchemy-effect
/
packages
/
frontend-frameworks
/
fixtures
/
tanstack-start
/
src
/
routes
/
api.db.ts
Code
Commits
Issues
Pulls
Cloud Agent
CICD
main
main
ts
13 lines
318 Bytes
Copy permalink
Copy
Raw
1
import
{
createFileRoute
}
from
"
@tanstack/react-router
"
;
2
3
export
const
Route
=
createFileRoute
(
"
/api/db
"
)({
4
server
:
{
5
handlers
:
{
6
GET
:
async
()
=>
{
7
const
{
fetchSql
}
=
await
import
(
"
../db
"
);
8
const
result
=
await
fetchSql
();
9
return
Response
.
json
(
result
);
10
},
11
},
12
},
13
});