Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
I am getting a 404 with a custom api when using a parameter - Wasp
W
Wasp
•
2y ago
•
4 replies
haarismian
I am getting a 404 with a custom api when using a parameter
this is my wasp api
api getPexels
{
httpRoute
:
(GET
,
"
/api
/get
-pexels
/
:query
"
)
,
fn
: import
{ getPexels
} from
"
@src
/server
/pexels
.js
"
,
}
this is my api call
const res
= await api
.get
(
/api/get-pexels?query=${selectedCity}
/api/get-pexels?query=${selectedCity}
)
;
and this is my backend function
export const getPexels
: GetPexels
<
{ query
: string
}
>
= async
(req
, res
, context
)
=
>
{
console
.log
(
'pexels called
'
)
;
Wasp
Join
Rails-like framework for React, Node.js and Prisma. Build your app in a day and deploy it with a single CLI command.
4,650
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Getting a 404 on our test API route
W
Wasp / 🙋questions
2y ago
File-Upload using a custom API
W
Wasp / 🙋questions
3y ago
I am getting the following error using OpenSaas, when trying to make a Stripe test payment
W
Wasp / 🙋questions
9mo ago
use auth when requesting a custom api without the api wrapper
W
Wasp / 🙋questions
2y ago