lifeoncruzcontrol / blog-api

0 stars 0 forks source link

POST /posts/create #6

Open lifeoncruzcontrol opened 1 month ago

lifeoncruzcontrol commented 1 week ago

First, need to refactor existing directory to match this architecture:

blog-api -src -- app.ts -- server.ts -- plugins --- database.ts -- features --- posts ----index.ts ---- controllers ----- ...files for controllers ---- models (types are how they are defined in fastify) ----- ...files for ORM models ---- routes ----- ...files for post routes ---- services ----- ...files for services ---- schemas ----- ...files for validation