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(
and this is my backend function
export const getPexels: GetPexels<{ query: string }> = async (req, res, context) => {
console.log('pexels called');
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});and this is my backend function
export const getPexels: GetPexels<{ query: string }> = async (req, res, context) => {
console.log('pexels called');