Skip to content

Commit

Permalink
Fixed API generator missing a slash.
Browse files Browse the repository at this point in the history
  • Loading branch information
rizen committed Apr 6, 2024
1 parent 8b8206d commit c8ed246
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/change-log.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ outline: deep
---
# Change Log

## 2024-04-06
* Added VING_SITE_URL to install instructions.
* Fixed API generator missing a slash.

## 2024-04-05
* Changed the way foreign keys are generated due to the possibility of creating keynames that were too long.
* Added a migration status to the drizzle CLI.
Expand Down
2 changes: 1 addition & 1 deletion ving/generator/nuxtapis.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default defineEventHandler(async (event) => {

export const generateRest = (params) => {
const context = { ...getContext({}), ...params };
const folderName = `server/api/${ving.getConfig().rest.version}${context.name.toLowerCase()}`;
const folderName = `server/api/${ving.getConfig().rest.version}/${context.name.toLowerCase()}`;
let gen = Promise.resolve(context);
let filePath = `${folderName}/[id].delete.mjs`;
if (!(params.skipExisting && fs.existsSync(filePath)))
Expand Down

0 comments on commit c8ed246

Please sign in to comment.