tommybananas / finale

Create flexible REST endpoints and controllers from Sequelize models in your Express app
187 stars 36 forks source link

api/ base route #69

Closed thboomsma closed 4 years ago

thboomsma commented 4 years ago

Hello it's probably a stupid question but im running into clashes with my other project pages.

How do i change the API base link to something other than "/" .. eg. api/

Please help

kurenai-ryu commented 4 years ago

check the base on finale initialize api

thboomsma commented 4 years ago

It works, thank you!

// Initialize finale finale.initialize({ app: app, sequelize: db.Sequelize, base: "/api" });

It should be added to the example code!