Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 503 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 503 Bytes

Mirage Pretender JS

This repo contains all the code allow MirageJS to use Pretender as its interceptor.

Documentation

To tell Mirage which interceptor you wish to use, update the server config

import { createServer } from "miragejs"
import PretenderInterceptor from 'mirage-pretender';

export default function () {
  createServer({
    interceptor: new PretenderInterceptor(),  
    routes() {
      this.get("/api/reminders", () => ({
        reminders: [],
      }))
    },
  })
}