Skip to content
Enoch Olayemi edited this page Jul 8, 2026 · 5 revisions

Routes

This page maps the current route groups in Tapitude Creator Hub.

Routes are registered in:

src/server.ts

Route group files live in:

src/routes/

Controller behavior lives in:

src/controllers/

Public Index Routes

Mounted at:

/

Routes:

GET /
GET /about

Controller:

src/controllers/index.controller.ts

Auth Routes

Mounted at:

/auth

Routes:

GET  /auth/login
POST /auth/login
POST /auth/logout

Controller:

src/controllers/auth.controller.ts

Admin Routes

Mounted at:

/admin

Routes:

GET  /admin/dashboard
GET  /admin/creators
GET  /admin/creators/new
GET  /admin/edit-creator-account/:id
POST /admin/creators/new
POST /admin/edit-creator-account/:id
POST /admin/delete-creator-account/:id

Controller:

src/controllers/admin.controller.ts

Access:

  • Must be logged in.
  • Must have admin role.

Creator Routes

Mounted at:

/creator

Routes:

GET  /creator/dashboard
GET  /creator/content
GET  /creator/pages/:id/editor
GET  /creator/profile
POST /creator/profile/update
POST /creator/pages/new-page
POST /creator/pages/create
POST /creator/pages/:id/update
POST /creator/pages/upload
POST /creator/pages/:id/delete

Controller:

src/controllers/creator.controller.ts

Access:

  • Must be logged in.
  • Must have creator or admin role.
  • Creator account must be active.

Content Hub Routes

Mounted at:

/content-hub

Routes:

GET /content-hub
GET /content-hub/:slug

Controller:

src/controllers/viewer_content_hub.controller.ts

Socket.IO namespace:

/content-hub

Socket events:

requestContent
likePost
disconnect

Static and Upload Routes

Static files:

public/

Uploaded files:

/storage

Removed/Outdated Route References

The older wiki referenced routes that do not currently exist:

/c/:creatorSlug
/p/:postSlug
/content-pages
/uploads/:filename
/api/health
/admin/users
/admin/creators/:creatorId/posts

Do not document these as current routes unless they are implemented later.

Route Rules

  • Admin routes require admin access.
  • Creator routes require creator/admin access.
  • Creators should only mutate their own posts, profile, and media.
  • POST routes should include CSRF protection.
  • Public viewer routes do not require login.

Clone this wiki locally