API routes not being registered

@kapa.ai - my Wasp project is complining but my custom API routes are not being registered.

//#region API Key Management
api getApiKey {
fn: import { getApiKey } from "@src/user/apiKey",
entities: [User],
httpRoute: (GET, "/api/api-key")
}

api regenerateApiKey {
fn: import { regenerateApiKey } from "@src/user/apiKey",
httpRoute: (POST, "/api/api-key/regenerate"),
entities: [User],
auth: true
}


Why is this?
Was this page helpful?