Mongo Server
  • Introduction
  • Getting started
  • Basics
    • Routing and Queries
    • Restrict endpoints
    • Route logic
    • Default values
    • Input validation and Output Formatting
  • Auth and permissions
    • Login and authentication
    • Permission handling
    • Local authentication
    • Magic Links and codes
  • Automatic Documentation
    • Server description
    • Swagger Docs
  • Miscellaneous
    • Db Seeding
    • Mailing settings
    • Roadmap
    • Population Constrains
Powered by GitBook
On this page

Was this helpful?

  1. Basics

Restrict endpoints

You can restrict the endpoints for only what you provided using the restrict option in your config file:

module.exports= {
  restrict: true,
  resources: ['users','dogs']
  // or
  resources: {
    users: true,
    dogs: true,
  }
}
PreviousRouting and QueriesNextRoute logic

Last updated 6 years ago

Was this helpful?